]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] added the 'git-tar' target to the Makefile
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Oct 2006 12:24:14 +0000 (14:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Oct 2006 12:24:14 +0000 (14:24 +0200)
Now, doing a "make git-tar" will automaticall build the tar.gz archive
from the versionned tree.

Makefile

index 95e76cd7e09635e5e98f2e754cba16e2f422b212..c12e51944b76f41cc91b483118d38040a5c2d56f 100644 (file)
--- 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