From: R. Steve McKown Date: Thu, 3 Dec 2009 20:00:13 +0000 (-0700) Subject: Correctly pull version numbers from debian/changelog containing dashes. X-Git-Tag: debian/2.1.0-1tinyos1~6^2~7 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=22f8823563d79b5c84561c1bbfcd5ea4fd7b5668 Correctly pull version numbers from debian/changelog containing dashes. --- diff --git a/rules b/rules index fdedfdb8..fa24813c 100755 --- a/rules +++ b/rules @@ -34,7 +34,7 @@ dtmp := debian/tmp # For now, the solution is quite hackish: copy the source directory to the # build directory before running configure. tempdir := $(shell tempfile $(PACKAGE)) -version := $(shell head -1 debian/changelog | sed -e s'|^.*(\([^-)]*\).*$$|\1|') +version := $(shell head -1 debian/changelog | sed -e s'|^.*(\(.*\)-.*).*$$|\1|') configure-stamp: patch-stamp $(checkdir)