[liblinear] 06/08: d/rules: Improve version number 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 liblinear.

commit 3f9863ac63c5856993b9201a76e1d8a7f26a4b7d
Author: Christian Kastner <ckk at kvr.at>
Date:   Sun Apr 24 16:51:02 2016 +0200

    d/rules: Improve version number parsing
---
 debian/rules | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index a343559..6df7939 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,11 +9,11 @@
 PKGDIR := $(dir $(firstword $(MAKEFILE_LIST)))..
 
 # Needed for our Makefile customizations, and for get-orig-source
-DEBVER := $(shell cd $(PKGDIR) && dpkg-parsechangelog -SVersion | \
-		sed -rne 's/([0-9]\.[0-9]\.[0-9]).*/\1/p')
-DMAJOR := $(shell echo $(DEBVER) | sed -rne 's/([0-9])\.[0-9]\.[0-9].*/\1/p')
-DMINOR := $(shell echo $(DEBVER) | sed -rne 's/[0-9]\.([0-9])\.[0-9].*/\1/p')
-DPATCH := $(shell echo $(DEBVER) | sed -rne 's/[0-9]\.[0-9]\.([0-9]).*/\1/p')
+DEBVER := $(shell dpkg-parsechangelog -l$(PKGDIR)/debian/changelog -SVersion)
+UPVER := $(shell echo $(DEBVER) | sed -rne 's/([0-9]\.[0-9]\.[0-9]).*/\1/p')
+DMAJOR := $(shell echo $(UPVER) | sed -rne 's/([0-9])\.[0-9]\.[0-9].*/\1/p')
+DMINOR := $(shell echo $(UPVER) | sed -rne 's/[0-9]\.([0-9])\.[0-9].*/\1/p')
+DPATCH := $(shell echo $(UPVER) | sed -rne 's/[0-9]\.[0-9]\.([0-9]).*/\1/p')
 # Replicate upstream's naming convention... (see d/watch)
 ifeq ($(DPATCH),0)
     UPVER := $(DMAJOR).$(DMINOR)

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



More information about the debian-science-commits mailing list