summaryrefslogtreecommitdiffhomepage
path: root/auto/make
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-01-11 09:54:35 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-01-11 09:54:35 +0300
commitf7bc2e1560c2bbbd899b22a54837f09ccb582609 (patch)
tree4332e6de3324a18ffc690a28f39b33c76333fea7 /auto/make
parent2fa203f2da32449dec9886e01dee1a4d85ce1e90 (diff)
downloadunit-f7bc2e1560c2bbbd899b22a54837f09ccb582609.tar.gz
unit-f7bc2e1560c2bbbd899b22a54837f09ccb582609.tar.bz2
Using hg archive instead of copying to make distribution tarball.
Diffstat (limited to 'auto/make')
-rw-r--r--auto/make9
1 files changed, 3 insertions, 6 deletions
diff --git a/auto/make b/auto/make
index 12abd41c..477439d9 100644
--- a/auto/make
+++ b/auto/make
@@ -245,11 +245,8 @@ clean:
.PHONY: dist
dist:
rm -f unit-\$(NXT_VERSION).tar.gz
- mkdir unit-\$(NXT_VERSION)
- cp -rp LICENSE NOTICE CHANGES README \\
- configure auto src test \\
- unit-\$(NXT_VERSION)
- tar czf unit-\$(NXT_VERSION).tar.gz unit-\$(NXT_VERSION)
- rm -rf unit-\$(NXT_VERSION)
+ hg archive unit-\$(NXT_VERSION).tar.gz \\
+ -p unit-\$(NXT_VERSION) \\
+ -X ".hg*" -X "pkg/" -X "docs/"
END