]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] always match official tags when doing git-tar
authorWilly Tarreau <w@1wt.eu>
Sat, 7 Aug 2010 20:26:20 +0000 (22:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 12:10:59 +0000 (14:10 +0200)
Makefile

index f306a81dc6359c4e342f1600c5cfd91445355e6c..c042314fccae8bc65ccc0e426d8e0a4f3c627a7a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -274,7 +274,7 @@ endif
 # holding the same names in the current directory.
 
 ifeq ($(IGNOREGIT),)
-VERSION := $(shell [ -d .git/. ] && ref=`(git describe --tags) 2>/dev/null` && ref=$${ref%-g*} && echo "$${ref\#v}")
+VERSION := $(shell [ -d .git/. ] && ref=`(git describe --tags --match 'v*') 2>/dev/null` && ref=$${ref%-g*} && echo "$${ref\#v}")
 ifneq ($(VERSION),)
 # OK git is there and works.
 SUBVERS := $(shell comms=`git log --no-merges v$(VERSION).. 2>/dev/null |grep -c ^commit `; [ $$comms -gt 0 ] && echo "-$$comms" )