Packages: Move dist target to git archive
This commit is contained in:
committed by
Konstantin Pavlov
parent
c3af21e970
commit
baff936be1
5
.gitattributes
vendored
5
.gitattributes
vendored
@@ -1,2 +1,7 @@
|
|||||||
*.c diff=cpp
|
*.c diff=cpp
|
||||||
*.h diff=cpp
|
*.h diff=cpp
|
||||||
|
|
||||||
|
.hg* export-ignore
|
||||||
|
pkg/** export-ignore
|
||||||
|
docs/*.* export-ignore
|
||||||
|
docs/Makefile export-ignore
|
||||||
|
|||||||
@@ -11,10 +11,11 @@ default:
|
|||||||
|
|
||||||
dist:
|
dist:
|
||||||
rm -f unit-$(VERSION).tar.gz
|
rm -f unit-$(VERSION).tar.gz
|
||||||
hg archive unit-$(VERSION).tar.gz \
|
cd .. && git archive \
|
||||||
-r $(VERSION) \
|
--output pkg/unit-$(VERSION).tar.gz \
|
||||||
-p unit-$(VERSION) \
|
--prefix unit-$(VERSION)/ \
|
||||||
-X "../.hg*" -X "../pkg/" -X "../docs/*.*" -X "../docs/Makefile"
|
--worktree-attributes \
|
||||||
|
$(VERSION) ./
|
||||||
$(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512
|
$(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512
|
||||||
|
|
||||||
rpm:
|
rpm:
|
||||||
|
|||||||
Reference in New Issue
Block a user