From 3de74efd0e9796dae1054e490aac92f3d5c0a9ef Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 25 Sep 2010 17:51:17 +0200 Subject: [PATCH] Release rules --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) 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/ -- 2.39.2