From: Martin Mares Date: Sat, 25 Sep 2010 15:51:17 +0000 (+0200) Subject: Release rules X-Git-Tag: v0.1~2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3de74efd0e9796dae1054e490aac92f3d5c0a9ef;p=ucwmac.git Release rules --- diff --git a/Makefile b/Makefile index fcfaecb..d61e575 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +VERSION=0.1 +ARCHIVE=ucwmac-$(VERSION).tar.gz + all: test.ps %.dvi: %.tex @@ -11,3 +14,11 @@ all: test.ps clean: rm -f *~ *.log *.dvi *.ps *.aux + +release: + git tag ucwmac-v$(VERSION) + git push --tags + git archive --format=tar --prefix=ucwmac-$(VERSION) HEAD | gzip >$(ARCHIVE) + scp $(ARCHIVE) atrey:~ftp/pub/local/mj/tex/ + scp jw "cd www && bin/release-prog ucwmac $(VERSION)" + mv $(ARCHIVE) ~/archives/mj/