X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fdouble_build%2Fexec%2Fupdate;fp=branch%2Fdouble_build%2Fexec%2Fupdate;h=b457c912bb08f71ef134abbf06df13b028073f1d;hb=bbe8a759637a74b5036c8c7345de55a96cb7bbd6;hp=0000000000000000000000000000000000000000;hpb=449efd24870d395eb1edfd4d3a59e239c8cc5547;p=cran2deb.git diff --git a/branch/double_build/exec/update b/branch/double_build/exec/update new file mode 100755 index 0000000..b457c91 --- /dev/null +++ b/branch/double_build/exec/update @@ -0,0 +1,30 @@ +#!/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 +sys=`{cran2deb which_system} +mkdir -p /var/cache/cran2deb/results/$sys || exit 1 +update_period=10800 +if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) { + delta=`{awk 'END{print '^$update_period^'+1}'