Use git-archive to create tarball.

This commit is contained in:
Dianne Skoll
2019-11-15 11:06:19 -05:00
parent 2909106f30
commit a6ee3bc704
2 changed files with 6 additions and 4 deletions

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
.gitignore export-ignore
.gitattributes export-ignore
remind.php export-ignore
sync-to-dianne-git export-ignore

View File

@@ -79,15 +79,13 @@ depend:
# Build a tar file based on all files checked into git.
distro:
ln -s . ../remind-$(VERSION)
(cd ..; git ls-files | fgrep -v .gitignore | fgrep -v remind.php | fgrep -v sync-to-dianne-git) | sed -e 's/^/remind-$(VERSION)\//' | xargs tar -C .. -cvf remind-$(VERSION).tar
git archive --worktree-attributes --format=tar --prefix=remind-$(VERSION)/ HEAD > remind-$(VERSION).tar
gzip -f -v -9 remind-$(VERSION).tar
gpg --detach-sign -u dianne@skoll.ca remind-$(VERSION).tar.gz
rm -f ../remind-$(VERSION)
beta-tgz:
ln -s . ../remind-$(VERSION)-BETA-$(BETA)
(cd ..; git ls-files | fgrep -v .gitignore | fgrep -v remind.php) | fgrep -v sync-to-dianne-git sed -e 's/^/remind-$(VERSION)-BETA-$(BETA)\//' | xargs tar -C .. -cvf remind-$(VERSION)-BETA-$(BETA).tar
git archive --worktree-attributes --format=tar --prefix=remind-$(VERSION)/ HEAD > remind-$(VERSION)-BETA-$(BETA).tar
gzip -f -v -9 remind-$(VERSION)-BETA-$(BETA).tar
rm -f ../remind-$(VERSION)-BETA-$(BETA)