From 3ec09496b926179675e9cf2e221cc14b24131138 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 3 Oct 2011 22:33:11 +0200 Subject: [PATCH] Rewrite archive and cvstag make rules for git * Rename cvstag to gittag * Adapt archive and gittag make rules to git --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8958df3..3432229 100644 --- a/Makefile +++ b/Makefile @@ -39,14 +39,13 @@ install : pstack mkdir -p "$(MANDIR)/man1" install -m 644 man1/pstack.1 "$(MANDIR)/man1" -cvstag: - cvs tag -F $(CVSTAG) . +gittag: + git tag -s pstack-$(VERSION) -archive: cvstag - @rm -rf /tmp/pstack-$(VERSION) /tmp/pstack - @cd /tmp; cvs export -r$(CVSTAG) pstack; mv pstack pstack-$(VERSION) - @cd /tmp; tar czSpf pstack-$(VERSION).tar.gz pstack-$(VERSION) - @rm -rf /tmp/pstack-$(VERSION) +archive: gittag + @rm -rf /tmp/pstack-$(VERSION).tar.gz + @git archive -o /tmp/pstack-$(VERSION).tar --prefix=pstack-$(VERSION)/ pstack-$(VERSION) + @cd /tmp; gzip -9 pstack-$(VERSION).tar @cp /tmp/pstack-$(VERSION).tar.gz . - @echo " " + @echo "" @echo "The final archive is ./pstack-$(VERSION).tar.gz."