[grits] 02/05: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Sun Jun 25 15:22:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository grits.
commit 74ceecb484f146af7dd500e95da4ff35016b3a9e
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Jun 25 16:59:16 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 46c87a8..f2d038e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ libgrits (0.8.1-3) UNRELEASED; urgency=medium
* Team upload.
* Bump Standards-Version to 4.0.0, no changes.
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Sun, 25 Jun 2017 16:57:59 +0200
diff --git a/debian/rules b/debian/rules
index 85d3960..0964ea2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,9 @@
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
-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/grits.git
More information about the Pkg-grass-devel
mailing list