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

Annotation of /build_r-base.sh

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : ranke 56 #!/bin/bash
2 :    
3 :     # Script to automate building r-base binaries for CRAN
4 :    
5 :     # Author: Johannes Ranke <jranke@uni-bremen.de>
6 :    
7 : ranke 61 # On Debian I used to run this script as root. On Ubuntu I now run it with
8 :     # sudo -E sh build_r-base.sh
9 :    
10 : ranke 56 # Preconditions: - shell variables DIST and ARCH
11 : ranke 64 # - matching CRAN sources in /etc/apt/sources/list
12 : ranke 61 # - cdbs installed (and maybe more)
13 : ranke 56
14 :     echo Distribution is $DIST
15 :     echo Architecture is $ARCH
16 :    
17 :     apt-get update
18 : ranke 64 apt-get source r-base
19 : ranke 56
20 :     cd r-base-*
21 :    
22 : ranke 61 pbuilder update
23 :    
24 : ranke 63 pdebuild --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --binary-arch --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /var/cache/pbuilder/$DIST-$ARCH/aptcache --buildplace /var/cache/pbuilder/$DIST-$ARCH/build
25 : ranke 56 if [ $? -ne 0 ]; then
26 :     exit
27 :     fi
28 :    
29 :     cd ..

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1