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

Diff of /backport_others.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 72, Thu Jul 14 18:06:51 2011 UTC revision 73, Sun Oct 2 05:43:42 2011 UTC
# Line 12  Line 12 
12  #                - Set the R version  #                - Set the R version
13    
14  # R version against which the software is compiled  # R version against which the software is compiled
15  Rversion=2.13.1  Rversion=2.13.2
16    
17  echo Distribution is $DIST  echo Distribution is $DIST
18  echo Architecture is $ARCH  echo Architecture is $ARCH
# Line 22  Line 22 
22  apt-get update  apt-get update
23  pbuilder update  pbuilder update
24    
25  for i in r-cran-rjags; do  #for i in r-cran-rjags; do
26  #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
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 rpy rkward r-cran-rjags; 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 rpy rkward r-cran-rjags; do
28      apt-get source $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
32    
33      ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.13.1-1~lennycran.0)/' debian/control      ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.13.2-1~squeezecran.0)/' debian/control
34      ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.13.1-1~lennycran.0)/' debian/control      ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.13.2-1~squeezecran.0)/' debian/control
35    
36      dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"      dch -a "debian/control: adapt build dependencies on r-base-dev to current backport"
37    
     # Backport r-cran-class  
     if [ ${i} = "r-cran-class" ]  
     then  
         sed -i '/^Build-Depends/s/.*/&, r-cran-mass/' debian/control  
         dch -a "debian/control: add Build-Depends: to 'r-cran-mass'"  
     fi  
   
     # Backport rpy  
     if [ ${i} = "rpy" ]  
     then  
         sed -i '/^Build-Depends/s/debhelper (>= 7.2.17)/debhelper/' debian/control  
         dch -a "debian/control: revert Build-Depends: to 'debhelper' since lenny has a version of debhelper < 7.2.17"  
         sed -i '/^Build-Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control  
         dch -a "debian/control: revert Build-Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0"  
         sed -i '/^Depends/s/python-numpy (>= 1:1.3.0)/python-numpy/' debian/control  
         dch -a "debian/control: revert Depends: to 'python-numpy' since lenny has a version of python-numpy < 1.3.0"  
     fi  
   
38      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      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
39      cd ..      cd ..
40  done  done

Legend:
Removed from v.72  
changed lines
  Added in v.73

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1