blob: f78ef50bea4050f8b219de0116d12e390880a85c (
plain) (
tree)
|
|
#!/bin/bash
# Script to automate building r-base binaries for CRAN
# Author: Johannes Ranke <jranke@uni-bremen.de>
# Preconditions: - shell variables DIST and ARCH
# - CRAN sources in /etc/apt/sources/list
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 --debbuildopts '-b' --buildresult /home/ranke/svn/website/www/ranke/r-cran/$DIST-cran/ -- --distribution $DIST --basetgz /var/cache/pbuilder/$DIST-$ARCH-base.tgz --aptcache /exthd/pbuilder/$DIST-$ARCH/aptcache --buildplace /exthd/pbuilder/$DIST-$ARCH/build
if [ $? -ne 0 ]; then
exit
fi
cd ..
|