]> mj.ucw.cz Git - osdd.git/commitdiff
Added `release' target and released as version 1.0
authorMartin Mares <mj@ucw.cz>
Sat, 17 Jul 2010 21:25:03 +0000 (23:25 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Jul 2010 21:25:03 +0000 (23:25 +0200)
Makefile

index 4ac7804dade0aa5ece7d6b788088df529070d534..7123fa3e085290c249c6c5e28acd1f2cace210fb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+VERSION=1.0
+ARCHIVE=osdd-$(VERSION).tar.gz
+
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
 
 all: osdd osdc osd-batt
@@ -14,3 +17,9 @@ osd-batt: LDFLAGS+=-lX11
 
 clean:
        rm -f *~ *.o TAGS core osdd osdc
+
+release:
+       git archive --format=tar --prefix=osdd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+       ssh jw "cd www && bin/release-prog osdd $(VERSION)"
+       mv $(ARCHIVE) ~/archives/mj/