]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/scripts/crontab.sh
removed no longer used METAs
[helm.git] / helm / matita / scripts / crontab.sh
index ee7c181dbd1e0be73f11f4bbad039b6fdedc7bec..5ad50de5ee47ea77bb1a997c1fb067a5752ba4e8 100644 (file)
@@ -1,18 +1,21 @@
 #!/bin/bash
 TODAY=`date +%Y%m%d`
 YESTERDAY=`date -d yesterday +%Y%m%d`
-TMPDIRNAME=.__${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
+TMPDIRNAME=$HOME/__${TODAY}_crontab
+TMPDIRNAMEOLD=$HOME/__${YESTERDAY}_crontab
+SVNROOT="svn+ssh://mowgli.cs.unibo.it/local/svn/helm/trunk/"
+SHELLTIME2CENTSPHP=scripts/shell_time2cents.php
+SHELLADDERPHP=scripts/shell_adder.php
+COMMONPHP=scripts/public_html/common.php
+
 
 OLD=$PWD
-rm -rf $TMPDIRNAME 
-mkdir $TMPDIRNAME
+mkdir -p $TMPDIRNAME
+rm -rf $TMPDIRNAMEOLD
 cd $TMPDIRNAME
-cvs -d $CVSROOT co helm/matita/scripts 1>/dev/null 2>/dev/null
-helm/matita/scripts/profile_cvs.sh 2> LOG
+rm -rf helm
+svn co ${SVNROOT}helm/matita/scripts/ > LOG.svn 2>&1
+scripts/profile_svn.sh 2> LOG
 
 MARK=`echo "select distinct mark from bench where mark like '$TODAY%' order by mark" | mysql -u helm matita | tail -n 1`
 LASTMARK=`echo "select distinct mark from bench where mark like '$YESTERDAY%' order by mark" | mysql -u helm matita | tail -n 1`
@@ -71,5 +74,5 @@ EOT
 fi
 
 cd $OLD
-rm -rf $TMPDIRNAME
+#rm -rf $TMPDIRNAME