From ec2141689f433f0875aec712b9af1460b0c4be8c Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Tue, 13 Nov 2018 09:31:45 +1300 Subject: [PATCH] Turns out I occasionally need to override the version --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f23ea3c..66a5e4c 100755 --- 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 -- 2.30.2