| 4 |
# sudo -E sh backport_others.sh |
# sudo -E sh backport_others.sh |
| 5 |
|
|
| 6 |
# Preconditions: - shell variables DIST and ARCH |
# Preconditions: - shell variables DIST and ARCH |
| 7 |
# - sources for current R backport in /etc/apt/sources/list |
# - current R backport in /etc/apt/sources/list |
| 8 |
# - sid sources in /etc/apt/sources/list |
# - sid sources in /etc/apt/sources/list |
| 9 |
# - ssed and cdbs installed (and maybe more) |
# - ssed and cdbs installed (and maybe more) |
| 10 |
# - Edit the sed scripts below to adapt the build dependencies |
# - Edit the sed scripts below to adapt the build dependencies |
| 11 |
# to the appropriate version of r-base-dev |
# (don't forget distribution name) to the appropriate version of |
| 12 |
|
# r-base-dev |
| 13 |
# - Set the R version |
# - Set the R version |
| 14 |
|
|
| 15 |
# R version against which the software is compiled |
# R version against which the software is compiled |
| 25 |
|
|
| 26 |
#for i in vr; do |
#for i in vr; do |
| 27 |
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 |
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 |
| 28 |
apt-get source -t unstable $i |
apt-get source $i |
| 29 |
cd $i-* |
cd $i-* |
| 30 |
version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion |
version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion |
| 31 |
dch -b -v $version --force-distribution -D $DIST-cran $text |
dch -b -v $version --force-distribution -D $DIST-cran $text |