X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trunk%2Fexec%2Fupdate;h=982fa6c055457b6e3ce309b1abbfac66de28d260;hb=9639f4fea2c490ae3cc188370c050a7ad76c1e77;hp=b457c912bb08f71ef134abbf06df13b028073f1d;hpb=256e82f0e03195ececa992342b4a96c5bf89f3fa;p=cran2deb.git diff --git a/trunk/exec/update b/trunk/exec/update index b457c91..982fa6c 100755 --- a/trunk/exec/update +++ b/trunk/exec/update @@ -1,4 +1,5 @@ #!/usr/bin/rc + ## DOC: cran2deb update ## DOC: update the cran2deb cache and database ## DOC: cran2deb update full @@ -7,16 +8,22 @@ 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=10800 +update_period=108 if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) { delta=`{awk 'END{print '^$update_period^'+1}'