Rewrite archive and cvstag make rules for git

* Rename cvstag to gittag
* Adapt archive and gittag make rules to git
This commit is contained in:
Thomas Preud'homme 2011-10-03 22:33:11 +02:00
parent 27599168da
commit 3ec09496b9
1 changed files with 7 additions and 8 deletions

View File

@ -39,14 +39,13 @@ install : pstack
mkdir -p "$(MANDIR)/man1" mkdir -p "$(MANDIR)/man1"
install -m 644 man1/pstack.1 "$(MANDIR)/man1" install -m 644 man1/pstack.1 "$(MANDIR)/man1"
cvstag: gittag:
cvs tag -F $(CVSTAG) . git tag -s pstack-$(VERSION)
archive: cvstag archive: gittag
@rm -rf /tmp/pstack-$(VERSION) /tmp/pstack @rm -rf /tmp/pstack-$(VERSION).tar.gz
@cd /tmp; cvs export -r$(CVSTAG) pstack; mv pstack pstack-$(VERSION) @git archive -o /tmp/pstack-$(VERSION).tar --prefix=pstack-$(VERSION)/ pstack-$(VERSION)
@cd /tmp; tar czSpf pstack-$(VERSION).tar.gz pstack-$(VERSION) @cd /tmp; gzip -9 pstack-$(VERSION).tar
@rm -rf /tmp/pstack-$(VERSION)
@cp /tmp/pstack-$(VERSION).tar.gz . @cp /tmp/pstack-$(VERSION).tar.gz .
@echo " " @echo ""
@echo "The final archive is ./pstack-$(VERSION).tar.gz." @echo "The final archive is ./pstack-$(VERSION).tar.gz."