| 4 |
|
|
| 5 |
# Author: Johannes Ranke <jranke@uni-bremen.de> |
# Author: Johannes Ranke <jranke@uni-bremen.de> |
| 6 |
|
|
| 7 |
|
# On Debian I used to run this script as root. On Ubuntu I now run it with |
| 8 |
|
# sudo -E sh build_r-base.sh |
| 9 |
|
|
| 10 |
# Preconditions: - shell variables DIST and ARCH |
# Preconditions: - shell variables DIST and ARCH |
| 11 |
# - CRAN sources in /etc/apt/sources/list |
# - CRAN sources in /etc/apt/sources/list |
| 12 |
|
# - cdbs installed (and maybe more) |
| 13 |
|
|
| 14 |
echo Distribution is $DIST |
echo Distribution is $DIST |
| 15 |
echo Architecture is $ARCH |
echo Architecture is $ARCH |
| 19 |
|
|
| 20 |
cd r-base-* |
cd r-base-* |
| 21 |
|
|
| 22 |
#pbuilder update |
pbuilder update |
| 23 |
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 |
|
| 24 |
|
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 |
| 25 |
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
| 26 |
exit |
exit |
| 27 |
fi |
fi |