[libmpikmeans] 10/16: d/rules: Simplify version parsing

Christian Kastner ckk at moszumanska.debian.org
Sun Apr 24 16:24:10 UTC 2016


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

ckk pushed a commit to branch master
in repository libmpikmeans.

commit 477ce8333d61f253a0cbb32f5635096da8a9d544
Author: Christian Kastner <ckk at kvr.at>
Date:   Sun Apr 24 15:09:19 2016 +0200

    d/rules: Simplify version parsing
---
 debian/rules | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index e61d8a9..6c057ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,9 @@
 #export DH_VERBOSE=1
 
 # Get version numbers for SONAME from changelog
-DVER = $(shell dpkg-parsechangelog | grep '^Version')
-LVER = $(shell echo $(DVER) | sed -e 's/Version: \([0-9]*\)\..*/\1/')
-LSUBVER = $(shell echo $(DVER) | sed -e 's/Version: .*\.\([0-9]*\).*/\1/')
+DEBVER = $(shell dpkg-parsechangelog -S Version)
+LVER = $(shell echo $(DEBVER) | sed -e 's/\([0-9]*\)\..*/\1/')
+LSUBVER = $(shell echo $(DEBVER) | sed -e 's/.*\.\([0-9]*\).*/\1/')
 export LVER
 export LSUBVER
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libmpikmeans.git



More information about the debian-science-commits mailing list