]> mj.ucw.cz Git - git-tools.git/commitdiff
Added a simple Makefile for making releases
authorMartin Mares <mj@ucw.cz>
Mon, 2 Jul 2012 21:19:15 +0000 (23:19 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 2 Jul 2012 21:19:15 +0000 (23:19 +0200)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..5802ec1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+VERSION=1.0
+ARCHIVE=git-tools-$(VERSION).tar.gz
+
+all:
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=git-tools-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+       ssh jw "cd www && bin/release-prog git-tools $(VERSION)"
+       mv $(ARCHIVE) ~/archives/mj/