From: Martin Mares Date: Sat, 17 Jul 2010 21:00:54 +0000 (+0200) Subject: make release X-Git-Tag: v1.0~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ed0a621e64cc22becc6f182528994d778161ff7f;p=siplog.git make release --- diff --git a/Makefile b/Makefile index 9df7568..f9f76a1 100644 --- 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/