From: thierry Date: Wed, 14 Apr 2010 15:33:25 +0000 (+0000) Subject: run the cyclic task at princeton in a safe directory to avoid interferences with... X-Git-Tag: foo~162 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5e0e824a920388817617a5e279fcc67a8e6a8416;p=infrastructure.git run the cyclic task at princeton in a safe directory to avoid interferences with manual tags --- diff --git a/scripts/all-modules.sh b/scripts/all-modules.sh index d408c73..89886f4 100755 --- a/scripts/all-modules.sh +++ b/scripts/all-modules.sh @@ -24,9 +24,12 @@ COMMAND=$(basename $0) if [ "$(id -u)" == "0" ] ; then OUTPUT=/build/modules/slow LOCK=/var/run/all-modules.pid + MODULES_OPTION="" else OUTPUT=~/all-modules LOCK=~/all-modules.run + # make sure the cyclic tasks do not interfere with manual usage + MODULES_OPTION="-w ${HOME}/all-modules-working-dir" fi function do_update() { @@ -48,7 +51,7 @@ function do_version () { out_tmp=$out_dir/.version.html mkdir -p $out_dir - $build_dir/module-version --www $name -a --url &> $out_tmp + $build_dir/module-version $MODULES_OPTION --www $name -a --url &> $out_tmp mv -f $out_tmp $out_file } @@ -62,7 +65,7 @@ function do_diff () { out_tmp=$out_dir/.diff.html mkdir -p $out_dir - $build_dir/module-diff --www $name -a &> $out_tmp + $build_dir/module-diff $MODULES_OPTION --www $name -a &> $out_tmp mv -f $out_tmp $out_file }