[jmapviewer] 04/05: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Sat Jul 1 09:28:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository jmapviewer.
commit f90098f4e991baf29b8799732dff732072c09448
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Jul 1 11:19:54 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 bb0c1f4..ceb7495 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ jmapviewer (2.2+dfsg-2) UNRELEASED; urgency=medium
* Add upstream patch to handle empty cookies.
* 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> Sat, 01 Jul 2017 11:17:45 +0200
diff --git a/debian/rules b/debian/rules
index dba7c2a..5c66ece 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,9 @@
#!/usr/bin/make -f
# -*- makefile -*-
-VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+include /usr/share/dpkg/pkg-info.mk
+
+VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
%:
dh $@ --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/jmapviewer.git
More information about the Pkg-grass-devel
mailing list