summaryrefslogtreecommitdiff
path: root/build_r-base.sh
blob: 2d09f22f47eb4bdcc37bbd4049befee74d23c95e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

# Script to automate building r-base binaries for CRAN

# 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
#                - 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 source -t $DIST-cran 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

cd ..

Contact - Imprint