]> mj.ucw.cz Git - xsv.git/blobdiff - Makefile
Released as v1.0
[xsv.git] / Makefile
index 80eeeebfa885f1414998552e9df00a0f91f9c4c4..a63f72c25adc368657f624404db46b1f4dba38d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 VERSION=1.0
+ARCHIVE=xsv-$(VERSION).tar.gz
 
 PCRE_CFLAGS:=$(shell pcre-config --cflags)
 PCRE_LIBS:=$(shell pcre-config --libs)
@@ -18,3 +19,11 @@ clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
        rm -f xsv xsv.1
        rm -rf tmp
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=xsv-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+       ssh jw "cd www && bin/release-prog xsv $(VERSION)"
+       mv $(ARCHIVE) ~/archives/mj/