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.sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/backport_r-base.sh b/backport_r-base.sh
index a0c2664..3dff4d1 100644
--- a/backport_r-base.sh
+++ b/backport_r-base.sh
@@ -5,8 +5,8 @@
# Author: Johannes Ranke <jranke@uni-bremen.de>
# Developed in parallel with Vincent Goulet <vincent.goulet@act.ulaval.ca>
-# On Debian I used to run this script as root. On Ubuntu I now run it with
-# sudo -E sh backport_r-base.sh
+# 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
@@ -37,15 +37,7 @@ 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
+reposversion="cran3"
cranversion=$oldversion"~"$DIST$reposversion".0"
echo Old version is $oldversion

Contact - Imprint