From: Andrew Ruthven Date: Mon, 31 Dec 2018 09:20:28 +0000 (+1300) Subject: Fix the logic to support version 1.0.0! X-Git-Tag: 1.0.0~21 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b55e1a2a856f00edb32addaa7146a79303dc92;p=mythtv-status.git Fix the logic to support version 1.0.0! --- diff --git a/Makefile b/Makefile index 195d2ca..6367bf8 100755 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ build=dpkg-buildpackage -rfakeroot -i'(.git|build|.gitignore|testing)*' -I.git - 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_version=$(shell git tag -l | grep ^debian-$(release)-[[:digit:]] | sed 's/debian-$(release)-//' | sort -t"." -k 1,1 -k 2,2 -k 3,3 -n | tail -1 | sed 's/@/~/') deb=$(package)_$(deb_version)_all.deb orig_tarball=../$(package)_$(version).orig.tar.gz