X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fcrontab.sh;h=b545b108dc5968353d49b9d21a1a3181201da2e0;hb=b92a0ec32215eea5e0452154da54d5a29a84a53e;hp=648a1a709c07d1cc4b25e758c003df1d6cc68e8c;hpb=f9410c56ba4645668d5246654df1ba816ec249b1;p=helm.git diff --git a/helm/matita/scripts/crontab.sh b/helm/matita/scripts/crontab.sh index 648a1a709..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 @@ -9,9 +10,10 @@ COMMONPHP=helm/matita/scripts/public_html/common.php OLD=$PWD -rm -rf $TMPDIRNAME -mkdir $TMPDIRNAME +mkdir -p $TMPDIRNAME +rm -rf $TMPDIRNAMEOLD cd $TMPDIRNAME +rm -rf helm cvs -d $CVSROOT co helm/matita/scripts 1>/dev/null 2>/dev/null helm/matita/scripts/profile_cvs.sh 2> LOG