]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/scripts/crontab.sh
...
[helm.git] / helm / matita / scripts / crontab.sh
index ee7c181dbd1e0be73f11f4bbad039b6fdedc7bec..28e628fc906710903bb4b9317121896b7ca75151 100644 (file)
@@ -1,16 +1,17 @@
 #!/bin/bash
 TODAY=`date +%Y%m%d`
 YESTERDAY=`date -d yesterday +%Y%m%d`
-TMPDIRNAME=.__${TODAY}_crontab
+TMPDIRNAME=$HOME/__${TODAY}_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
 COMMONPHP=helm/matita/scripts/public_html/common.php
 
+
 OLD=$PWD
-rm -rf $TMPDIRNAME 
-mkdir $TMPDIRNAME
+mkdir -p $TMPDIRNAME
 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
 
@@ -71,5 +72,5 @@ EOT
 fi
 
 cd $OLD
-rm -rf $TMPDIRNAME
+#rm -rf $TMPDIRNAME