[libocas] 07/14: d/rules: Improve version parsing
Christian Kastner
ckk at moszumanska.debian.org
Fri Apr 22 21:59:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
ckk pushed a commit to branch master
in repository libocas.
commit 752bfd38876228dfcf6ca487ecec9c70ef2df053
Author: Christian Kastner <ckk at kvr.at>
Date: Thu Apr 21 19:24:56 2016 +0200
d/rules: Improve version parsing
---
debian/rules | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 37051a4..6ec9d46 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,10 +6,11 @@
# Get version information
PKGDIR := $(dir $(firstword $(MAKEFILE_LIST)))..
-UPVER := $(shell dpkg-parsechangelog -l$(PKGDIR)/debian/changelog -S Version | \
- sed -re 's/\+dfsg-.*//')
+DEBVER := $(shell dpkg-parsechangelog -l$(PKGDIR)/debian/changelog -S Version)
+UPVER := $(shell echo $(DEBVER) | sed -re 's/\+dfsg-.*//')
LVER = $(shell echo $(UPVER) | sed -nre 's/([0-9]+)\..*/\1/p')
LSUBVER = $(shell echo $(UPVER) | sed -nre 's/[0-9]\.([0-9]+).*/\1/p')
+# Version information is needed by the build process
export LVER
export LSUBVER
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libocas.git
More information about the debian-science-commits
mailing list