[r-backports] / backport_others.sh Repository:
ViewVC logotype

Annotation of /backport_others.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 79 - (view) (download) (as text)

1 : ranke 56 # Author: Johannes Ranke <jranke@uni-bremen.de>
2 :    
3 : ranke 61 # On Debian I used to run this script as root. On Ubuntu I now run it with
4 :     # sudo -E sh backport_others.sh
5 :    
6 : ranke 56 # Preconditions: - shell variables DIST and ARCH
7 : ranke 64 # - current R backport in /etc/apt/sources/list
8 : ranke 56 # - sid sources in /etc/apt/sources/list
9 : ranke 61 # - ssed and cdbs installed (and maybe more)
10 : ranke 65 # - Edit R version and the sed scripts below (don't forget
11 :     # distribution name) to the appropriate version of R
12 : ranke 56 # - Set the R version
13 :    
14 :     # R version against which the software is compiled
15 : ranke 79 Rversion=2.15.0
16 : ranke 56
17 :     echo Distribution is $DIST
18 :     echo Architecture is $ARCH
19 :    
20 :     text="Recompiled on $DIST for CRAN"
21 :    
22 : ranke 61 apt-get update
23 :     pbuilder update
24 : ranke 56
25 : ranke 75 # single package:
26 : ranke 73 #for i in r-cran-rjags; do
27 : ranke 75 # lenny packages:
28 : ranke 77 #for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass rmatrix rodbc rpart survival littler; do
29 : ranke 75 # squeeze packages:
30 : ranke 77 for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass rmatrix rodbc rpart survival littler rpy rkward r-cran-rjags; do
31 : ranke 64 apt-get source $i
32 : ranke 56 cd $i-*
33 :     version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion
34 : ranke 60 dch -b -v $version --force-distribution -D $DIST-cran $text
35 : ranke 56
36 : ranke 79 ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.15.0-1~squeezecran.0)/' debian/control
37 :     ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.15.0-1~squeezecran.0)/' debian/control
38 : ranke 56
39 :     dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
40 :    
41 : ranke 61 pdebuild --debbuildopts '-sa' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/pbuilder/$DIST-$ARCH/build
42 : ranke 56 cd ..
43 :     done

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1