[Pkg-electronics-commits] [gnucap] 03/06: use DEB_VERSION, not parsechangelog
felix salfelder
felix-guest at moszumanska.debian.org
Tue Mar 6 00:12:27 UTC 2018
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository gnucap.
commit efa0f735cdce2b8513e6e44d21532b0f53ac94a1
Author: Felix Salfelder <felix at salfelder.org>
Date: Mon Mar 5 22:45:41 2018 +0000
use DEB_VERSION, not parsechangelog
---
debian/rules | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 09d4e81..415d821 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,9 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
+
#export DH_VERBOSE=1
-version_full = $(shell dpkg-parsechangelog --show-field Version)
-version_no_epoch = $(shell v="$(version_full)"; echo $${v\#\#*:})
+version_no_epoch = $(shell v="$(DEB_VERSION)"; echo $${v\#\#*:})
tarball_version = $(shell v="$(version_no_epoch)"; echo $${v%%-*})
upstream_commit = $(shell v="$(tarball_version)"; echo $${v\#\#*~})
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git
More information about the Pkg-electronics-commits
mailing list