[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.
This commit is contained in:
Willy Tarreau 2006-10-15 14:24:14 +02:00
parent 690f9aa028
commit 9f0a90145f
1 changed files with 4 additions and 0 deletions

View File

@ -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