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

Andreas Tille tille at debian.org
Mon May 20 08:36:01 UTC 2013


The following commit has been merged in the master branch:
commit 61055648450ef430cd20b7cefd4ddd2fe1d0ee26
Author: Andreas Tille <tille at debian.org>
Date:   Mon May 20 09:58:24 2013 +0200

    use dpkg-parsechangelog to obtain pkg name and version

diff --git a/debian/changelog b/debian/changelog
index e7bda38..ed05bb4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ blends (0.6.16.3) unstable; urgency=low
   * debian/control
      - Standards-Version: 3.9.4 (no changes needed)
      - Debhelper 9 (also d/compat)
+  * debian/rules:
+     - use dpkg-parsechangelog to obtain pkg name and version
 
  -- Andreas Tille <tille at debian.org>  Sun, 31 Mar 2013 19:40:23 +0200
 
diff --git a/debian/rules b/debian/rules
index 1e37365..b40e4d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,8 +5,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-pkg=blends
-VERSION := $(shell grep '^blends *(.\+)' debian/changelog | head -n 1 | sed 's/^blends \+(\(.\+\)) .*/\1/' )
+pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+VERSION := $(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d- )
 DISTDIR := $(pkg)-$(VERSION)
 
 build: build-stamp

-- 
Git repository for blends code



More information about the Blends-commit mailing list