[zoo-project] 04/04: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Mon Jun 26 20:09:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository zoo-project.

commit 0bfb5277174f3b5cd5e63926670353689d55e906
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Jun 26 22:08:54 2017 +0200

    Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 85d832c..fdaf376 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,9 @@ ifeq ($(VENDOR_DERIVES_FROM_UBUNTU),yes)
 	export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
 endif
 
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+include /usr/share/dpkg/pkg-info.mk
+
+UPSTREAM_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
 
 MAPSERVER_VERSION=$(shell dpkg-query -W -f='$${Version}' libmapserver-dev | awk -F. '{ print $$1 }')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/zoo-project.git



More information about the Pkg-grass-devel mailing list