]> mj.ucw.cz Git - siplog.git/blobdiff - Makefile
Tag releases automatically
[siplog.git] / Makefile
index 9df7568ffd09949be713d40401b508774f429ac2..f541549ee0690e920782510f7dbf2b98339b6641 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+VERSION=1.0
+ARCHIVE=siplog-$(VERSION).tar.gz
+
 CC=gcc
 LD=gcc
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 -fPIC
@@ -11,3 +14,11 @@ siplog.so: siplog.o
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
        rm -f siplog.so
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=siplog-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/net/
+       ssh jw "cd www && bin/release-prog siplog $(VERSION)"
+       mv $(ARCHIVE) ~/archives/mj/