We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3af21e commit baff936Copy full SHA for baff936
.gitattributes
@@ -1,2 +1,7 @@
1
*.c diff=cpp
2
*.h diff=cpp
3
+
4
+.hg* export-ignore
5
+pkg/** export-ignore
6
+docs/*.* export-ignore
7
+docs/Makefile export-ignore
pkg/Makefile
@@ -11,10 +11,11 @@ default:
11
12
dist:
13
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"
+ cd .. && git archive \
+ --output pkg/unit-$(VERSION).tar.gz \
+ --prefix unit-$(VERSION)/ \
+ --worktree-attributes \
18
+ $(VERSION) ./
19
$(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512
20
21
rpm:
0 commit comments