summaryrefslogtreecommitdiff
path: root/backport_r-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backport_r-base.sh')
-rw-r--r--backport_r-base.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/backport_r-base.sh b/backport_r-base.sh
index d2a08f1..a0c2664 100644
--- a/backport_r-base.sh
+++ b/backport_r-base.sh
@@ -38,23 +38,35 @@ cd r-base-*
# Old version
oldversion=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`
cranversion=$oldversion"~"$DIST"cran.0"
+if [ $DIST = "squeeze" ]
+then
+ reposversion="cran3"
+fi
+if [ $DIST = "wheezy" ]
+then
+ reposversion="cran"
+fi
+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-cran -b "Backport from Debian unstable to Debian $DIST"
+dch -v "${cranversion}" --force-distribution -D $DIST-$reposversion -b "Backport from Debian unstable to Debian $DIST"
-# Reverts for squeeze:
+# 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"
+fi
pbuilder update
-pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran3/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/pbuilder/$DIST-$ARCH/build
+pdebuild --debbuildopts '-sa' --buildresult /home/ranke/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

Contact - Imprint