Using hg archive instead of copying to make distribution tarball.

This commit is contained in:
Igor Sysoev
2018-01-11 09:54:35 +03:00
parent 2fa203f2da
commit f7bc2e1560

View File

@@ -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