diff options
author | ranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b> | 2011-10-31 09:37:46 +0000 |
---|---|---|
committer | ranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b> | 2011-10-31 09:37:46 +0000 |
commit | d2b1368be4f390b6b1ba299adcfe622e7bb85281 (patch) | |
tree | b2c145504a064768dcc6b14ca5809193a7292cbb | |
parent | 412073815549fcb7f276c1c1d707d451d5bd4910 (diff) |
Modification of the build scripts that I use for making amd64 binary
packages, as I went back to using a chroot for these.
git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@74 f247ebf9-aa24-0410-a698-f940e971ad2b
-rw-r--r-- | build_jags.sh | 21 | ||||
-rw-r--r-- | build_others.sh | 22 | ||||
-rw-r--r-- | build_r-base.sh | 21 |
3 files changed, 15 insertions, 49 deletions
diff --git a/build_jags.sh b/build_jags.sh index 3051158..4727dbf 100644 --- a/build_jags.sh +++ b/build_jags.sh @@ -1,29 +1,16 @@ #!/bin/bash -# Script to automate building jags binaries for CRAN +# Script to facilitate building jags binaries for CRAN in a chroot +# Matching CRAN sources must be in /etc/apt/sources.list of the chroot # Author: Johannes Ranke <jranke@uni-bremen.de> -# 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 - apt-get update +apt-get build-dep jags apt-get source jags cd jags-* -pbuilder update - -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 +dpkg-buildpackage -B cd .. diff --git a/build_others.sh b/build_others.sh index 95d68f4..0b67494 100644 --- a/build_others.sh +++ b/build_others.sh @@ -1,24 +1,16 @@ # Author: Johannes Ranke <jranke@uni-bremen.de> -# On Debian I used to run this script as root. On Ubuntu I now run it with -# sudo -E sh build_others.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 - apt-get update -pbuilder update -#for i in r-cran-rjags; do -#for i in cluster foreign lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth rmatrix rodbc rpart survival littler; do -for i in cluster foreign lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth rmatrix rodbc rpart survival littler rpy rkward r-cran-rjags; do +# lenny +for i in cluster foreign lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth rmatrix rodbc rpart survival littler; do +# squeeze +#for i in cluster foreign lattice mgcv nlme r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth rmatrix rodbc rpart survival littler rpy rkward r-cran-rjags; do + apt-get --no-install-recommends build-dep $i apt-get source $i cd $i-* - 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 + dpkg-buildpackage -B + cd .. done diff --git a/build_r-base.sh b/build_r-base.sh index 18dc8aa..ca48af3 100644 --- a/build_r-base.sh +++ b/build_r-base.sh @@ -1,29 +1,16 @@ #!/bin/bash -# Script to automate building r-base binaries for CRAN +# Script to facilitate building r-base binaries for CRAN in a chroot +# Matching CRAN sources must be in /etc/apt/sources.list of the chroot # Author: Johannes Ranke <jranke@uni-bremen.de> -# 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 - apt-get update +apt-get build-dep r-base apt-get source r-base cd r-base-* -pbuilder update - -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 +dpkg-buildpackage -B cd .. |