From: Martin Mares Date: Fri, 20 Aug 2010 15:56:30 +0000 (+0200) Subject: Makefile: Updated the release rules X-Git-Tag: v1.12~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e25814f3821533872ce6316144ac69a09d925eea;p=ywho.git Makefile: Updated the release rules --- diff --git a/Makefile b/Makefile index eeb2271..a2497a6 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ CFLAGS=-O2 -Wall -Wno-parentheses LDFLAGS= ROOT=/ -REL=ywho-1.12 +VERSION=1.12 +ARCHIVE=ywho-$(VERSION).tar.gz all: ywho @@ -19,6 +20,14 @@ install: mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin install -s -m 755 ywho $(ROOT)/usr/bin +release: + git tag v$(VERSION) + git push --tags + git archive --format=tar --prefix=ywho-$(VERSION)/ HEAD | gzip >$(ARCHIVE) + scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/ + ssh jw "cd www && bin/release-prog ywho $(VERSION)" + mv $(ARCHIVE) ~/archives/mj/ + dist: clean mkdir -p ~/tmp cp -a . ~/tmp/$(REL)