[geographiclib] 04/08: Handle common issues in upstream version extraction from changelog.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Fri Mar 13 17:35:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository geographiclib.
commit 23c2b9ea5f86706952007e0f5a3c00cd9eb52732
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Mar 13 17:50:13 2015 +0100
Handle common issues in upstream version extraction from changelog.
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 76b129c..ccc2097 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
export PYBUILD_NAME=geographiclib
export PYBUILD_SYSTEM=pybuild
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/~.*//')
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/[~+].*//; s/^[0-9]://')
DBG_PACKAGE=$(shell grep "^Package: libgeographic[0-9]*-dbg$$" debian/control | awk '{print $$2}')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/geographiclib.git
More information about the Pkg-grass-devel
mailing list