[Blends-commit] [SCM] blends-dev branch, master, updated. e672b4f77cb35a11f2d7dcc432ba70e6fa1ba922

Andreas Tille tille at debian.org
Sun Mar 31 17:44:15 UTC 2013


The following commit has been merged in the master branch:
commit e672b4f77cb35a11f2d7dcc432ba70e6fa1ba922
Author: Andreas Tille <tille at debian.org>
Date:   Sun Mar 31 19:41:23 2013 +0200

    Better way to obtain version string

diff --git a/debian/changelog b/debian/changelog
index 9b1fcbc..9b1f854 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+blends (0.6.16.3) UNRELEASED; urgency=low
+
+  * devtools/rules: Better way to obtain version string
+
+ -- Andreas Tille <tille at debian.org>  Sun, 31 Mar 2013 19:40:23 +0200
+
 blends (0.6.16.2) unstable; urgency=low
 
   * Install tasksel desc file to new location since version 3.00 of tasksel
diff --git a/devtools/rules b/devtools/rules
index 04f2d93..4bf7aff 100755
--- a/devtools/rules
+++ b/devtools/rules
@@ -15,7 +15,7 @@ TARGET_DIST := $(shell head -1 debian/changelog |awk '{print $$3}'|tr -d ';')
 BLEND       := $(shell /usr/share/blends-dev/blend-get-names blendname)
 GENCONTROL  := /usr/share/blends-dev/blend-gen-control
 
-VERSION     := $(shell grep '^$(BLENDNAME) *(.\+)' debian/changelog | head -n 1 | sed 's/^$(BLENDNAME) \+(\(.\+\)) .*/\1/' )
+VERSION     := $(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d- )
 DISTDIR     := $(BLENDNAME)-$(VERSION)
 
 all:

-- 
Git repository for blends code



More information about the Blends-commit mailing list