From 7430f108c3d9e07871c66daedcbce4aa2f5ff9a7 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 11 Mar 2017 13:48:58 +0100 Subject: Support stretch (testing) instead of wheezy (oldstable) --- backport_others | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'backport_others') diff --git a/backport_others b/backport_others index faf604c..c2fa8c1 100755 --- a/backport_others +++ b/backport_others @@ -3,11 +3,15 @@ # Author: Johannes Ranke # Script to automate backporting for CRAN -# Make sure the R version in ./backport is correctly set and the pbuilder chroot is updated +# Make sure the R version in ./backport is correctly set + +# Creates a source package and binary packages for the following architecture +ARCH=i386 +export ARCH usage() { -echo "Usage: ./backport_others [options] wheezy|jessie" +echo "Usage: ./backport_others [options] stretch|jessie" echo "Options:" echo " -s Skip apt-get update/upgrade and pbuilder update" } @@ -40,17 +44,20 @@ if [ "$skip" = false ] then sudo apt-get update sudo apt-get upgrade - sudo -E pbuilder update + sudo -E pbuilder update \ + --distribution $DIST \ + --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz \ + --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache fi # Validate distribution argument -if [ $DIST != "wheezy" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi +if [ $DIST != "stretch" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi export DIST # When doing a new repository, lattice, r-cran-mass and survival have to be # built first, then nlme and rmatrix, then the rest -# Packages to backport to wheezy/jessie (without rpy2): +# Packages to backport (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 ./backport -s $i $DIST -- cgit v1.2.1