[mapcache] 02/02: Fix upstream version extraction from changelog.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Thu Jun 25 20:52:27 UTC 2015


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

sebastic pushed a commit to branch master
in repository mapcache.

commit 63af51ba3ec4cca52223704a9aa42265d7803ee7
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Jun 25 22:26:42 2015 +0200

    Fix upstream version extraction from changelog.
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index aa5dfb8..109f39f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,7 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 CFLAGS+=$(CPPFLAGS)
 CFLAGS+=$(LDFLAGS)
 
-MAPCACHE_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/^\(.*\)~.*/\1/' | sed -e 's/dev.*/.0/')
+MAPCACHE_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
 BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
 
 CMAKE_OPTS:= \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcache.git



More information about the Pkg-grass-devel mailing list