]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Correctly pull version numbers from debian/changelog containing dashes.
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 3 Dec 2009 20:00:13 +0000 (13:00 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 3 Dec 2009 20:00:13 +0000 (13:00 -0700)
rules

diff --git a/rules b/rules
index fdedfdb82fe7a8d1ff97d097b8088317a8571d27..fa24813cde4932870ba6b2559b8d36c2c0715a3b 100755 (executable)
--- 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)