diff options
author | ranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b> | 2013-05-11 13:30:54 +0000 |
---|---|---|
committer | ranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b> | 2013-05-11 13:30:54 +0000 |
commit | 344e765683b1fb7b6a3942449697a4c134e36619 (patch) | |
tree | c57d1c53c5b720ae0b83da5bf52a982a273f5a0a /backport_r-base.sh | |
parent | 2078138b133028c0d4b812236b82aa4adaa7a18a (diff) |
Some more adaptations for the wheezy builds - not quite done yet.
git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@85 f247ebf9-aa24-0410-a698-f940e971ad2b
Diffstat (limited to 'backport_r-base.sh')
-rw-r--r-- | backport_r-base.sh | 14 |
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 |