summaryrefslogtreecommitdiff
path: root/backport_others.sh
diff options
context:
space:
mode:
authorranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2015-12-12 10:38:15 +0000
committerranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2015-12-12 10:38:15 +0000
commit1cd094b531ff2a9f1d6acb4b781c118d12b51343 (patch)
tree86682d7e3c76817652ba74b82d3047a75ea8f51f /backport_others.sh
parent28da2e962565a4ded17c427776529b43f3527186 (diff)
New and simplified organisation of backporting scripts
Now backports for different distributions (squeeze, wheezy, jessie) can be started from the same working directory. Also, single package builds can be done without editing a script. git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@111 f247ebf9-aa24-0410-a698-f940e971ad2b
Diffstat (limited to 'backport_others.sh')
-rw-r--r--backport_others.sh54
1 files changed, 0 insertions, 54 deletions
diff --git a/backport_others.sh b/backport_others.sh
deleted file mode 100644
index f3db13f..0000000
--- a/backport_others.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-# Author: Johannes Ranke <jranke@uni-bremen.de>
-
-# Run with (requires sudo configuration on Debian)
-# sudo -E ./backport_others.sh
-
-# Preconditions: - shell variables DIST and ARCH
-# - pbuilder chroot set up (see README)
-# - current R backport in /etc/apt/sources/list of pbuilder chroot
-# - sid sources in /etc/apt/sources/list
-# - ssed and cdbs installed (and maybe more)
-# - Set the R version
-
-# R version against which the software is compiled
-Rversion=3.2.2
-reposversion="cran3"
-
-echo Distribution is $DIST
-echo Architecture is $ARCH
-
-text="Recompiled on $DIST for CRAN"
-rbasedev="r-base-dev (>= $Rversion~$DIST$reposversion.0)"
-
-# Update the Package listings of the host system
-apt-get update
-# Update the pbuilder chroot
-pbuilder update
-
-# When doing a new repository, lattice, r-cran-mass and survival have to be
-# built first, then nlme and rmatrix, then the rest
-
-# single package:
-#for i in r-cran-rjags; do
-# squeeze/wheezy packages (without rpy2):
-for i in lattice nlme rmatrix mgcv boot cluster codetools foreign kernsmooth r-cran-class r-cran-coda r-cran-spatial r-cran-nnet r-cran-mass rodbc rpart survival littler rpy rkward r-cran-rjags; do
- apt-get source $i
- cd $i-*
- version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran."$Rversion
- dch -b -v $version --force-distribution -D $DIST-$reposversion $text
-
- ssed -i -R "/^Build-Depends/s/r-base-dev \(>= .*?\)/$rbasedev/" debian/control
- ssed -i -R "/^Build-Depends-Indep/s/r-base-dev \(>= .*?\)/$rbasedev/" debian/control
-
- dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
-
- if [ $i = "r-cran-rjags" ]
- then
- ssed -i -R "/^Build-Depends/s/jags \(>= 3.4.0-3\)/jags \(>= 3.4.0\)/" debian/control
- dch -a "debian/control: lower version requirement for jags as build dependency as 4.0.3 is not needed for backports"
- fi
-
-
- pdebuild --debbuildopts '-sa' --buildresult /home/jranke/svn/website/www/ranke/r-cran/$DIST-$reposversion/ -- --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