#!/usr/bin/rc ## DOC: cran2deb update ## DOC: update the cran2deb cache and database ## DOC: cran2deb update full ## DOC: force a full update of the cran2deb cache and database ## DOC: umask 002 root=$1 if ([ -z "$root" ]) { echo "You need to specify the root of your installation, i.e. the folder in which to find the exec subdirectory." exit 1 } shift sys=`{cran2deb which_system} mkdir -p /var/cache/cran2deb/results/$sys || exit 1 #update_period=10800 update_period=108 if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) { delta=`{awk 'END{print '^$update_period^'+1}'