[readosm] 06/09: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Mon Sep 25 18:41:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository readosm.
commit 077365347a61be839119d4de3b9145afbc5307c8
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Mon Sep 25 20:27:01 2017 +0200
Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
debian/changelog | 1 +
debian/rules | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 216a92f..14cdb7b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ readosm (1.1.0+dfsg-1) UNRELEASED; urgency=medium
* Bump Standards-Version to 4.1.0, changes: priority.
* Update copyright years in copyright file.
* Refresh patches.
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Mon, 25 Sep 2017 20:22:03 +0200
diff --git a/debian/rules b/debian/rules
index ddf6941..3fa261c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,9 @@
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
-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/\+.*//')
%:
dh $@ --with autoreconf --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/readosm.git
More information about the Pkg-grass-devel
mailing list