summaryrefslogtreecommitdiff
path: root/backport_others.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backport_others.sh')
-rw-r--r--backport_others.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/backport_others.sh b/backport_others.sh
new file mode 100644
index 0000000..837266d
--- /dev/null
+++ b/backport_others.sh
@@ -0,0 +1,32 @@
+# Author: Johannes Ranke <jranke@uni-bremen.de>
+
+# Preconditions: - shell variables DIST and ARCH
+# - sid sources in /etc/apt/sources/list
+# - 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.1
+
+echo Distribution is $DIST
+echo Architecture is $ARCH
+
+text="Recompiled on $DIST for CRAN"
+
+pbuilder update
+
+for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme rmatrix rodbc rpart survival vr 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 -D $DIST-cran $text
+
+ sed -i '/^Build-Depends/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.1-2~lennycran.0)/' debian/control
+ sed -i '/^Build-Depends-Indep/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.1-2~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
+ cd ..
+done

Contact - Imprint