From: Willy Tarreau Date: Sun, 15 Oct 2006 12:24:14 +0000 (+0200) Subject: [BUILD] added the 'git-tar' target to the Makefile X-Git-Tag: v1.3.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f0a90145fe3c430dc7532fd58cce4e86146dcb0;p=thirdparty%2Fhaproxy.git [BUILD] added the 'git-tar' target to the Makefile Now, doing a "make git-tar" will automaticall build the tar.gz archive from the versionned tree. --- diff --git a/Makefile b/Makefile index 95e76cd7e0..c12e51944b 100644 --- a/Makefile +++ b/Makefile @@ -135,3 +135,7 @@ tar: clean -cf - haproxy-$(VERSION)/* | gzip -c9 >haproxy-$(VERSION).tar.gz rm -f haproxy-$(VERSION) +git-tar: clean + ref=$(shell git-describe --tags); ver=$${ref#v};\ + comms=$(shell git-log $$ref..|grep -c ^commit); \ + git-tar-tree HEAD haproxy-$(VERSION) | gzip -9 > haproxy-$$ver-$$comms.tar.gz