From 44a814773d2c17804e75392d6e2f8be5885d47ea Mon Sep 17 00:00:00 2001 From: ranke Date: Tue, 30 Dec 2008 23:53:42 +0000 Subject: Fix to greedy pattern matching which caused the loss of build dependencies in the first place git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@49 f247ebf9-aa24-0410-a698-f940e971ad2b --- backport_all.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/backport_all.sh b/backport_all.sh index 41ab51a..319cc19 100644 --- a/backport_all.sh +++ b/backport_all.sh @@ -20,8 +20,8 @@ for i in nlme; do version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~etchcran.2.8.1 dch -b -v $version -D etch-cran $text - sed -i '/^Build-Depends/s/r-base-dev (.*)/r-base-dev (>= 2.8.1-1~etchcran.0)/' debian/control - sed -i '/^Build-Depends-Indep/s/r-base-dev (.*)/r-base-dev (>= 2.8.1-1~etchcran.0)/' debian/control + sed -i '/^Build-Depends/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.8.1-1~etchcran.0)/' debian/control + sed -i '/^Build-Depends-Indep/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.8.1-1~etchcran.0)/' debian/control dch -a "debian/control: adapt build dependencies on r-base-dev to current backport" if [ ${i} == "rpy" ] @@ -30,18 +30,6 @@ for i in nlme; do dch -a "debian/control: add build dependencies on lapack3-dev, python-minimal, python-central, tetex-bin and texinfo" fi - if [ ${i} == "nlme" ] - then - sed -i '/^Build-Depends/s/.*/&, r-cran-lattice, cdbs/' debian/control - dch -a "debian/control: add build dependency on r-cran-lattice and cdbs" - fi - - if [ ${i} == "rpart" ] - then - sed -i '/^Build-Depends/s/.*/&, cdbs/' debian/control - dch -a "debian/control: add build dependency on cdbs" - fi - fakeroot dpkg-buildpackage -sa cd ../.. done -- cgit v1.2.1