Skip to content

Commit baff936

Browse files
committed
Packages: Move dist target to git archive
1 parent c3af21e commit baff936

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
*.c diff=cpp
22
*.h diff=cpp
3+
4+
.hg* export-ignore
5+
pkg/** export-ignore
6+
docs/*.* export-ignore
7+
docs/Makefile export-ignore

pkg/Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ default:
1111

1212
dist:
1313
rm -f unit-$(VERSION).tar.gz
14-
hg archive unit-$(VERSION).tar.gz \
15-
-r $(VERSION) \
16-
-p unit-$(VERSION) \
17-
-X "../.hg*" -X "../pkg/" -X "../docs/*.*" -X "../docs/Makefile"
14+
cd .. && git archive \
15+
--output pkg/unit-$(VERSION).tar.gz \
16+
--prefix unit-$(VERSION)/ \
17+
--worktree-attributes \
18+
$(VERSION) ./
1819
$(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512
1920

2021
rpm:

0 commit comments

Comments
 (0)