X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fcrontab.sh;h=b545b108dc5968353d49b9d21a1a3181201da2e0;hb=114ee592d3da9b49abfd4c1b186cba1e170075dc;hp=28e628fc906710903bb4b9317121896b7ca75151;hpb=f47ed69f63d2eb99f71e90b519d790e371ad516a;p=helm.git diff --git a/helm/matita/scripts/crontab.sh b/helm/matita/scripts/crontab.sh index 28e628fc9..b545b108d 100644 --- a/helm/matita/scripts/crontab.sh +++ b/helm/matita/scripts/crontab.sh @@ -2,6 +2,7 @@ TODAY=`date +%Y%m%d` YESTERDAY=`date -d yesterday +%Y%m%d` TMPDIRNAME=$HOME/__${TODAY}_crontab +TMPDIRNAMEOLD=$HOME/__${YESTERDAY}_crontab CVSROOT=":ext:$USER@marcello.cs.unibo.it:/home/faculty/PROJECTS/cvs/helm" SHELLTIME2CENTSPHP=helm/matita/scripts/shell_time2cents.php SHELLADDERPHP=helm/matita/scripts/shell_adder.php @@ -10,6 +11,7 @@ COMMONPHP=helm/matita/scripts/public_html/common.php OLD=$PWD mkdir -p $TMPDIRNAME +rm -rf $TMPDIRNAMEOLD cd $TMPDIRNAME rm -rf helm cvs -d $CVSROOT co helm/matita/scripts 1>/dev/null 2>/dev/null