summaryrefslogtreecommitdiff
path: root/backport_others.sh
diff options
context:
space:
mode:
authorranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2009-11-04 18:13:29 +0000
committerranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2009-11-04 18:13:29 +0000
commit5f54688b1c6d85765a6190bd8463d9c2b5593044 (patch)
tree8dd65ab5fbfabaaa764dbbccc4958b2e56f144a0 /backport_others.sh
parentdc22033affd1d3544764f61170aec9cf3adeb941 (diff)
Script update for backporting to lenny
git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@61 f247ebf9-aa24-0410-a698-f940e971ad2b
Diffstat (limited to 'backport_others.sh')
-rw-r--r--backport_others.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/backport_others.sh b/backport_others.sh
index 2eb82d4..ba2a1a1 100644
--- a/backport_others.sh
+++ b/backport_others.sh
@@ -1,35 +1,38 @@
# Author: Johannes Ranke <jranke@uni-bremen.de>
+# On Debian I used to run this script as root. On Ubuntu I now run it with
+# sudo -E sh backport_others.sh
+
# Preconditions: - shell variables DIST and ARCH
# - sid sources in /etc/apt/sources/list
+# - ssed and cdbs installed (and maybe more)
# - Edit the sed scripts below to adapt the build dependencies
# to the appropriate version of r-base-dev
# - Set the R version
# R version against which the software is compiled
-Rversion=2.9.2
+Rversion=2.10.0
echo Distribution is $DIST
echo Architecture is $ARCH
text="Recompiled on $DIST for CRAN"
-#apt-get update
-#pbuilder update
+apt-get update
+pbuilder update
-#for i in survival; do
-for i in rpart survival vr littler; do
-#for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme rmatrix rodbc rpart survival vr littler; do
+#for i in nlme; do
+#for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass rmatrix rodbc rpart survival littler; do
apt-get source -t unstable $i
cd $i-*
version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion
dch -b -v $version --force-distribution -D $DIST-cran $text
- sed -i '/^Build-Depends/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.2-1~etchcran.0)/' debian/control
- sed -i '/^Build-Depends-Indep/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.2-1~etchcran.0)/' debian/control
+ ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.10.0-1~lennycran.0)/' debian/control
+ ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.10.0-1~lennycran.0)/' debian/control
dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
- pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /exthd/pbuilder/$DIST-$ARCH/aptcache --buildplace /exthd/pbuilder/$DIST-$ARCH/build
+ pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/pbuilder/$DIST-$ARCH/build
cd ..
done

Contact - Imprint