]> mj.ucw.cz Git - ucwmac.git/commitdiff
Release rules
authorMartin Mares <mj@ucw.cz>
Sat, 25 Sep 2010 15:51:17 +0000 (17:51 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 9 Oct 2010 11:14:11 +0000 (13:14 +0200)
Makefile

index fcfaecbeabdb4c25e8a1e811664bb0fbd5f3667c..d61e575d3ca178b548ee0780708856000a7fe303 100644 (file)
--- 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/