Parent Directory
|
Revision Log
Revision 88 - (view) (download) (as text)
| 1 : | ranke | 56 | # Author: Johannes Ranke <jranke@uni-bremen.de> |
| 2 : | |||
| 3 : | ranke | 85 | # Run with (requires sudo configuration on Debian) |
| 4 : | # sudo -E ./backport_others.sh | ||
| 5 : | ranke | 61 | |
| 6 : | ranke | 56 | # Preconditions: - shell variables DIST and ARCH |
| 7 : | ranke | 86 | # - pbuilder chroot set up (see README) |
| 8 : | ranke | 81 | # - current R backport in /etc/apt/sources/list of pbuilder chroot |
| 9 : | ranke | 56 | # - sid sources in /etc/apt/sources/list |
| 10 : | ranke | 61 | # - ssed and cdbs installed (and maybe more) |
| 11 : | ranke | 65 | # - Edit R version and the sed scripts below (don't forget |
| 12 : | # distribution name) to the appropriate version of R | ||
| 13 : | ranke | 56 | # - Set the R version |
| 14 : | |||
| 15 : | # R version against which the software is compiled | ||
| 16 : | ranke | 88 | Rversion=3.0.1 |
| 17 : | ranke | 85 | reposversion="cran3" |
| 18 : | ranke | 56 | |
| 19 : | echo Distribution is $DIST | ||
| 20 : | echo Architecture is $ARCH | ||
| 21 : | |||
| 22 : | text="Recompiled on $DIST for CRAN" | ||
| 23 : | ranke | 85 | rbasedev="r-base-dev (>= $Rversion~$DIST$reposversion.0)" |
| 24 : | ranke | 56 | |
| 25 : | ranke | 86 | # Update the Package listings of the host system |
| 26 : | apt-get update | ||
| 27 : | # Update the pbuilder chroot | ||
| 28 : | ranke | 61 | pbuilder update |
| 29 : | ranke | 56 | |
| 30 : | ranke | 86 | # When doing a new repository, lattice, r-cran-mass and survival have to be |
| 31 : | # built first, then nlme and rmatrix, then the rest | ||
| 32 : | |||
| 33 : | ranke | 75 | # single package: |
| 34 : | ranke | 88 | for i in r-cran-rjags; do |
| 35 : | ranke | 85 | # squeeze/wheezy packages: |
| 36 : | ranke | 88 | #for i in lattice nlme rmatrix mgcv boot cluster codetools foreign kernsmooth r-cran-class r-cran-coda r-cran-spatial r-cran-nnet r-cran-mass rodbc rpart survival littler rpy rpy2 rkward r-cran-rjags; do |
| 37 : | ranke | 64 | apt-get source $i |
| 38 : | ranke | 56 | cd $i-* |
| 39 : | ranke | 88 | version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran."$Rversion |
| 40 : | ranke | 85 | dch -b -v $version --force-distribution -D $DIST-$reposversion $text |
| 41 : | ranke | 56 | |
| 42 : | ranke | 85 | ssed -i -R "/^Build-Depends/s/r-base-dev \(>= .*?\)/$rbasedev/" debian/control |
| 43 : | ssed -i -R "/^Build-Depends-Indep/s/r-base-dev \(>= .*?\)/$rbasedev/" debian/control | ||
| 44 : | ranke | 56 | |
| 45 : | dch -a "debian/control: adapt build dependencies on r-base-dev to current backport" | ||
| 46 : | |||
| 47 : | ranke | 85 | 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 |
| 48 : | ranke | 56 | cd .. |
| 49 : | done |
| Johannes Ranke | ViewVC Help |
| Powered by ViewVC 1.0.1 |