[freexl] 06/07: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Sun Jul 23 10:06:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository freexl.
commit 562225074e1d7594b0ecdfe9e63d7d3fc6cb63dd
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Jul 23 11:47:07 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 862fedd..d5ebda7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ freexl (1.0.3-1) UNRELEASED; urgency=medium
* New upstream release.
* Bump Standards-Version to 4.0.0, no changes.
* Add autopkgtest to test installability.
+ * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
-- Bas Couwenberg <sebastic at debian.org> Sun, 23 Jul 2017 11:43:47 +0200
diff --git a/debian/rules b/debian/rules
index ad24563..0149d30 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,9 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# Verbose test output
export VERBOSE=1
-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/freexl.git
More information about the Pkg-grass-devel
mailing list