X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fmultisys%2Fexec%2Fupdate;fp=branch%2Fmultisys%2Fexec%2Fupdate;h=7bcc78f0ecf4bab77fca4f6a87bf6d50570a6af4;hb=413d9e15b7bd5f8f36685c2cccbb9bbed3a3a0b9;hp=0000000000000000000000000000000000000000;hpb=65fce8cd87d7d6f0209611ff7a264819e42a6c9e;p=cran2deb.git diff --git a/branch/multisys/exec/update b/branch/multisys/exec/update new file mode 100755 index 0000000..7bcc78f --- /dev/null +++ b/branch/multisys/exec/update @@ -0,0 +1,29 @@ +#!/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 +shift +mkdir -p /var/cache/cran2deb/results || exit 1 +mini-dinstall --batch -c /etc/cran2deb/mini-dinstall.conf || exit 1 +update_period=10800 +if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) { + delta=`{awk 'END{print '^$update_period^'+1}'