From f61316e2906cd8eecb73b1982b1784661702fd93 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 24 Jun 2005 10:00:36 +0000 Subject: [PATCH] shanpshot --- helm/matita/scripts/crontab | 3 +++ helm/matita/scripts/crontab.sh | 29 +++++++++++++++++++++++++++++ helm/matita/scripts/profile_cvs.sh | 21 +++++++++++---------- 3 files changed, 43 insertions(+), 10 deletions(-) create mode 100644 helm/matita/scripts/crontab create mode 100644 helm/matita/scripts/crontab.sh diff --git a/helm/matita/scripts/crontab b/helm/matita/scripts/crontab new file mode 100644 index 000000000..2a39f12b6 --- /dev/null +++ b/helm/matita/scripts/crontab @@ -0,0 +1,3 @@ +#MAILTO=helm@cs.unibo.it +MAILTO=tassi@cs.unibo.it +10 5 * * * sh /home/tassi/helm/matita/scripts/crontab.sh diff --git a/helm/matita/scripts/crontab.sh b/helm/matita/scripts/crontab.sh new file mode 100644 index 000000000..ccbe4c8f1 --- /dev/null +++ b/helm/matita/scripts/crontab.sh @@ -0,0 +1,29 @@ +MARK=`date +%Y%m%d` +TMPDIRNAME=.__${MARK}_crontab +CVSROOT=":ext:$USER@marcello.cs.unibo.it:/home/faculty/PROJECTS/cvs/helm" + +OLD=$PWD +rm -rf $TMPDIRNAME +mkdir $TMPDIRNAME +cd $TMPDIRNAME +cvs -d $CVSROOT co helm/matita/scripts 1>/dev/null 2>/dev/null +bash helm/matita/scripts/profile_cvs.sh > LOG + +cat </dev/null ./configure 1>/dev/null make matitac matitac.opt updater 1>/dev/null - sed "s/@@OWNER@@/profiler/" matita.conf.xml.sample > matita.conf.xml + sed "s/@@OWNER@@/profiler/" matita.conf.xml.sample | sed "s/@@PREFETCH@@/false/" > matita.conf.xml ./updater cd $OLD } @@ -32,14 +31,15 @@ function run_tests { OLD=$PWD cd $1 export OCAMLRUNPARAM='o=1000000' - testit $IMPL "gc-off" 1>/dev/null 2>/dev/null - testit $IMPL "gc-off" + testit "gc-off" 1>/dev/null 2>/dev/null + testit "gc-off" export OCAMLRUNPARAM='' - testit $IMPL "gc-on" 1>/dev/null 2>/dev/null - testit $IMPL "gc-on" + testit "gc-on" 1>/dev/null 2>/dev/null + testit "gc-on" cd $OLD } +OLD=$PWD rm -rf $TMPDIRNAME mkdir $TMPDIRNAME cd $TMPDIRNAME @@ -48,6 +48,7 @@ cvs -d $CVSROOT co helm/matita 1>/dev/null 2>/dev/null compile $PWD/helm/ocaml $PWD/helm/matita run_tests $PWD/helm/matita > LOG cat LOG | awk -f $PWD/helm/matita/scripts/insert.awk > INSERT.sql -cat INSERT.sql | mysql -u helm matita -#rm -rf $TMPDIRNAME +cat INSERT.sql | mysql -u helm -h mowgli.cs.unibo.it matita +cd $OLD +rm -rf $TMPDIRNAME -- 2.39.2