[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 61, Wed Nov 4 18:13:29 2009 UTC revision 62, Thu Nov 5 04:55:33 2009 UTC
# Line 4  Line 4 
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
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
# Line 21  Line 22 
22  apt-get update  apt-get update
23  pbuilder update  pbuilder update
24    
25  #for i in nlme; do  #for i in vr; 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      apt-get source -t unstable $i      apt-get source -t unstable $i
28      cd $i-*      cd $i-*
29      version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion      version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~$DIST"cran".$Rversion
30      dch -b -v $version --force-distribution -D $DIST-cran $text      dch -b -v $version --force-distribution -D $DIST-cran $text
31    
32      ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.10.0-1~lennycran.0)/' debian/control      ssed -i -R '/^Build-Depends/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.10.0-1~etchcran.0)/' debian/control
33      ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.10.0-1~lennycran.0)/' debian/control      ssed -i -R '/^Build-Depends-Indep/s/r-base-dev \(>= 2\..*?\)/r-base-dev (>= 2.10.0-1~etchcran.0)/' debian/control
34    
35      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"
36    
37        # Reverts for etch:
38        if [ $DIST = "etch" ]
39        then
40    
41            # In newer packages from the former VR bundle and in the new r-cran-vr dummy
42            # package, there is a build dependency on debhelper >= 7.0.0, which is not
43            # in etch.
44    
45            sed -i '/^Build-Depends/s/debhelper (>= 7.0.0)/debhelper/' debian/control
46            dch -a "debian/control: revert Build-Depends: to 'debhelper' since $DIST has a version < 7.0.0"
47    
48            echo 5 > debian/compat
49            dch -a "debian/compat: revert 'debhelper' compatibility level to 5"
50        fi
51    
52      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
53      cd ..      cd ..
54  done  done

Legend:
Removed from v.61  
changed lines
  Added in v.62

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1