]> mj.ucw.cz Git - siplog.git/commitdiff
make release
authorMartin Mares <mj@ucw.cz>
Sat, 17 Jul 2010 21:00:54 +0000 (23:00 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Jul 2010 21:00:54 +0000 (23:00 +0200)
Makefile

index 9df7568ffd09949be713d40401b508774f429ac2..f9f76a1e9a9b0b47458242deb0170f1d9a0ae1ee 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,9 @@ 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 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/