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 .PHONY: dist
dist: dist:
rm -f unit-\$(NXT_VERSION).tar.gz rm -f unit-\$(NXT_VERSION).tar.gz
mkdir unit-\$(NXT_VERSION) hg archive unit-\$(NXT_VERSION).tar.gz \\
cp -rp LICENSE NOTICE CHANGES README \\ -p unit-\$(NXT_VERSION) \\
configure auto src test \\ -X ".hg*" -X "pkg/" -X "docs/"
unit-\$(NXT_VERSION)
tar czf unit-\$(NXT_VERSION).tar.gz unit-\$(NXT_VERSION)
rm -rf unit-\$(NXT_VERSION)
END END