[SCM] lives/master: debian/rules: Improve the grepping of the 'Version' field, otherwise it may fail to build with unusual changelog entries

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Sep 15 08:02:33 UTC 2010


The following commit has been merged in the master branch:
commit e6449b4bae75f06b328e539dd3b1d467b81a4811
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Sep 15 09:59:40 2010 +0200

    debian/rules: Improve the grepping of the 'Version' field, otherwise it may fail to build with unusual changelog entries

diff --git a/debian/rules b/debian/rules
index 9160aea..eee190c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 LDFLAGS:=
 CFLAGS:=
 
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep Version | sed 's/^Version:\s\(.*\)-.*/\1/')
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep 'Version:' | sed 's/^Version:\s\(.*\)-.*/\1/')
 
 %:
 	dh --with autotools_dev $@

-- 
lives packaging



More information about the pkg-multimedia-commits mailing list