[asm] 02/04: Use pkg-info.mk instead of parsing dpkg-parsechangelog to get the version

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Jun 30 12:08:45 UTC 2017


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

ebourg-guest pushed a commit to branch master
in repository asm.

commit 192fc3876e595280d8ffc07d12b2ccb9ae73e95b
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Jun 30 13:56:11 2017 +0200

    Use pkg-info.mk instead of parsing dpkg-parsechangelog to get the version
---
 debian/changelog | 1 +
 debian/rules     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3655697..501b3f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 asm (5.2-3) UNRELEASED; urgency=medium
 
+  * Use pkg-info.mk instead of parsing dpkg-parsechangelog to get the version
   * Standards-Version updated to 4.0.0
 
  -- Emmanuel Bourg <ebourg at apache.org>  Fri, 30 Jun 2017 13:20:57 +0200
diff --git a/debian/rules b/debian/rules
index 17a1720..e89d2cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+include /usr/share/dpkg/pkg-info.mk
 
 export CLASSPATH=/usr/share/java/bnd.jar:/usr/share/java/bndlib.jar
 
@@ -12,7 +12,7 @@ override_dh_auto_build:
 	dh_auto_build -- jar jdoc examples
 
 override_mh_install:
-	mh_install -e$(VERSION)
+	mh_install -e$(DEB_VERSION_UPSTREAM)
 
 get-orig-source:
 	uscan --download-current-version --force-download --rename

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/asm.git



More information about the pkg-java-commits mailing list