diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2024-02-15 22:12:03 -0800 |
---|---|---|
committer | Konstantin Pavlov <pavlov.konstantin@gmail.com> | 2024-02-16 13:14:35 -0800 |
commit | baff936be1b8bb9627deaef2af58d9aa398b7ca2 (patch) | |
tree | 6e92bed02393f3ac6a4eca869233cf4131981bc1 | |
parent | c3af21e970ca3c822004cfda7c5b56ec07d99da9 (diff) | |
download | unit-baff936be1b8bb9627deaef2af58d9aa398b7ca2.tar.gz unit-baff936be1b8bb9627deaef2af58d9aa398b7ca2.tar.bz2 |
Packages: Move dist target to git archive
-rw-r--r-- | .gitattributes | 5 | ||||
-rw-r--r-- | pkg/Makefile | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/.gitattributes b/.gitattributes index 45ec5156..16af3a06 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,7 @@ *.c diff=cpp *.h diff=cpp + +.hg* export-ignore +pkg/** export-ignore +docs/*.* export-ignore +docs/Makefile export-ignore diff --git a/pkg/Makefile b/pkg/Makefile index c252969b..ad12efb7 100644 --- a/pkg/Makefile +++ b/pkg/Makefile @@ -11,10 +11,11 @@ default: dist: rm -f unit-$(VERSION).tar.gz - hg archive unit-$(VERSION).tar.gz \ - -r $(VERSION) \ - -p unit-$(VERSION) \ - -X "../.hg*" -X "../pkg/" -X "../docs/*.*" -X "../docs/Makefile" + cd .. && git archive \ + --output pkg/unit-$(VERSION).tar.gz \ + --prefix unit-$(VERSION)/ \ + --worktree-attributes \ + $(VERSION) ./ $(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512 rpm: |