summaryrefslogtreecommitdiff
path: root/build_r-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_r-base.sh')
-rw-r--r--build_r-base.sh21
1 files changed, 4 insertions, 17 deletions
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 ..

Contact - Imprint