summaryrefslogtreecommitdiff
path: root/backport_r-base.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_r-base.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_r-base.sh')
-rw-r--r--backport_r-base.sh74
1 files changed, 0 insertions, 74 deletions
diff --git a/backport_r-base.sh b/backport_r-base.sh
deleted file mode 100644
index b2bb42f..0000000
--- a/backport_r-base.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-
-# Script to automate backporting r-base for CRAN
-
-# Author: Johannes Ranke <jranke@uni-bremen.de>
-
-# Developed in parallel with Vincent Goulet <vincent.goulet@act.ulaval.ca>
-# Run with (requires sudo configuration on Debian)
-# sudo -E ./backport_r-base.sh
-
-# Preconditions: - shell variables DIST and ARCH
-# - sid sources in /etc/apt/sources/list
-# - cdbs installed (and maybe more)
-
-export DEBEMAIL="jranke@uni-bremen.de"
-export DEBFULLNAME="Johannes Ranke"
-echo Distribution is $DIST
-echo Architecture is $ARCH
-
-if [ -d r-base-* ]
-then
- rm -rf `ls -d r-base-*`
-fi
-
-apt-get update
-apt-get upgrade
-apt-get source r-base
-
-# Change any ~ in the name of the build directory for a - to avoid a
-# bug in texi2dvi. Thanks Vincent
-if [ -d r-base-*~* ]
-then
- dir=`ls -d r-base-*~*`
- mv $dir `echo $dir | sed y/~/-/`
-fi
-
-cd r-base-*
-
-# Old version
-oldversion=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`
-reposversion="cran3"
-cranversion=$oldversion"~"$DIST$reposversion".0"
-
-echo Old version is $oldversion
-echo CRAN version is $cranversion
-
-# Add new version to changelog
-dch -v "${cranversion}" --force-distribution -D $DIST-$reposversion -b "Backport from Debian unstable to Debian $DIST"
-
-# Reverts for squeeze only:
-if [ $DIST = "squeeze" ]
-then
- # 1. Starting with Debian packages for R 2.15.3 there is a build
- # dependency on 'libtiff5-dev' which is not in squeeze. Changing to
- # libtiff-dev, which is libtiff4-dev on squeeze.
-
- sed -i '/^Build-Depends/s/libtiff5-dev/libtiff-dev/' debian/control
- dch -a "debian/control: Change Build-Depends: from libtiff5-dev to libtiff-dev"
-
- # 2. Lower build dependencies for tcl 8.6 and tk 8.6
- # which are not available in squeeze
- sed -i '/^Build-Depends/s/tcl8.6-dev/tcl8.5-dev/' debian/control
- sed -i '/^Build-Depends/s/tk8.6-dev/tk8.5-dev/' debian/control
- dch -a "debian/control: Change Build-Depends: from tcl8.6-dev to tcl8.5-dev"
- dch -a "debian/control: Change Build-Depends: from tk8.6-dev to tk8.5-dev"
-fi
-
-pbuilder update --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
-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
-if [ $? -ne 0 ]; then
- exit
-fi
-
-cd ..

Contact - Imprint