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

Annotation of /backport_others.sh

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : ranke 56 # Author: Johannes Ranke <jranke@uni-bremen.de>
2 :    
3 :     # Preconditions: - shell variables DIST and ARCH
4 :     # - sid sources in /etc/apt/sources/list
5 :     # - Edit the sed scripts below to adapt the build dependencies
6 :     # to the appropriate version of r-base-dev
7 :     # - Set the R version
8 :    
9 :     # R version against which the software is compiled
10 :     Rversion=2.9.1
11 :    
12 :     echo Distribution is $DIST
13 :     echo Architecture is $ARCH
14 :    
15 :     text="Recompiled on $DIST for CRAN"
16 :    
17 :     pbuilder update
18 :    
19 : ranke 58 for i in rpart; do
20 :     #for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme rmatrix rodbc rpart survival vr littler; do
21 : ranke 56 apt-get source -t unstable $i
22 :     cd $i-*
23 :     version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion
24 :     dch -b -v $version -D $DIST-cran $text
25 :    
26 : ranke 58 sed -i '/^Build-Depends/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.1-2~etchcran.0)/' debian/control
27 :     sed -i '/^Build-Depends-Indep/s/r-base-dev (>= 2\..\..)/r-base-dev (>= 2.9.1-2~etchcran.0)/' debian/control
28 : ranke 56
29 :     dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
30 :    
31 :     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 /exthd/pbuilder/$DIST-$ARCH/aptcache --buildplace /exthd/pbuilder/$DIST-$ARCH/build
32 :     cd ..
33 :     done

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1