]> git.donarmstrong.com Git - cran2deb.git/blob - pkg/trunk/exec/update
cran2deb: put base_pkgs into the cache. generate cache so that R is happy. use separ...
[cran2deb.git] / pkg / trunk / exec / update
1 #!/usr/bin/rc
2 umask 022
3 root=$1
4 shift
5 for (x in `{find $root/etc -type f -name '*.in'}) {
6     y=`{echo $x | sed -e 's,.in$,,'}
7     sed -e 's:@ROOT@:'^$root^':g' <$x >$y
8 }
9 mkdir -p $root/var/results
10 if ([ ! -e $root/var/archive ]) {
11     # I symbolically link this into /var/www/
12     mkdir $root/var/archive
13 }
14 mini-dinstall --batch -c $root/etc/mini-dinstall.conf || exit 1
15 mode=create
16 if ([ -e /var/cache/pbuilder/base-cran2deb.tgz ]) {
17     mode=update
18 }
19 sudo pbuilder $mode --override-config --configfile $root/etc/pbuilderrc
20 $root/exec/update_cache $root