]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Turns out I occasionally need to override the version
authorAndrew Ruthven <andrew@etc.gen.nz>
Mon, 12 Nov 2018 20:31:45 +0000 (09:31 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Mon, 12 Nov 2018 20:31:45 +0000 (09:31 +1300)
Makefile

index f23ea3c7784af7b518285e34a6309beaa5afc6bf..66a5e4cac592767495f79af0a40972e9a710289e 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,9 @@ release=sid
 sponsor_keyid=19D03486
 
 build=dpkg-buildpackage -rfakeroot -i'(.git|build|.gitignore|testing)*' -I.git -Ibuild -I.gitignore -Itesting -tc -kE4D3E863
+ifeq ($(version),)
 version=$(shell git tag -l | grep '^[0-9]' | sort -t"." -k 1,1 -k 2,2 -k 3,3 -n | tail -1)
+endif
 deb_version=$(shell git tag -l | grep ^debian-$(release)-[[:digit:]] | sort -t"." -k 1,1 -k 2,2 -k 3,3 -n | tail -1 | sed 's/debian-$(release)-//' | sed 's/@/~/')
 
 deb=$(package)_$(deb_version)_all.deb