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

Diff of /build_jags.sh

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

revision 73, Sun Oct 2 05:43:42 2011 UTC revision 74, Mon Oct 31 09:37:46 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  # Script to automate building jags binaries for CRAN  # Script to facilitate building jags binaries for CRAN in a chroot
4    # Matching CRAN sources must be in /etc/apt/sources.list of the chroot
5    
6  # Author: Johannes Ranke <jranke@uni-bremen.de>  # Author: Johannes Ranke <jranke@uni-bremen.de>
7    
 # On Debian I used to run this script as root. On Ubuntu I now run it with  
 # sudo -E sh build_r-base.sh  
   
 # Preconditions: - shell variables DIST and ARCH  
 #                - matching CRAN sources in /etc/apt/sources/list  
 #                - cdbs installed (and maybe more)  
   
 echo Distribution is $DIST  
 echo Architecture is $ARCH  
   
8  apt-get update  apt-get update
9    apt-get build-dep jags
10  apt-get source jags  apt-get source jags
11    
12  cd jags-*  cd jags-*
13    
14  pbuilder update  dpkg-buildpackage -B
   
 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  
 if [ $? -ne 0 ]; then  
     exit  
 fi  
15    
16  cd ..  cd ..

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

Johannes Ranke
ViewVC Help
Powered by ViewVC 1.0.1