]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Fix the version number extraction script to handle non-numeric tags as well
authorFrancois Marier <francois@debian.org>
Tue, 22 Jul 2008 02:40:17 +0000 (14:40 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Tue, 22 Jul 2008 03:40:05 +0000 (15:40 +1200)
Makefile

index 4feb77b2ef3fe64a37a7a8bff47eea47bbb2d382..c7907a0252be40df3f4fff928276c0bfb2857c64 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ releases=etch sid
 sponsor_keyid=19D03486
 
 build=dpkg-buildpackage -sn -uc -us -rfakeroot -i'(.git|build|.gitignore|testing)*' -I.git -Ibuild -I.gitignore -Itesting
-version=$(shell git-tag -l | grep -v ^debian | tail -1)
+version=$(shell git-tag -l | grep '^[0-9]' | tail -1)
 deb_version=$(shell git-tag -l | grep ^debian-[[:digit:]] | tail -1 | sed 's/debian-//')
 
 deb=$(package)_$(deb_version)_all.deb