From: Claudio Sacerdoti Coen Date: Wed, 6 Jul 2005 09:04:08 +0000 (+0000) Subject: Shell variables are all global! Fixed a bug that prevented the removal X-Git-Tag: V_0_7_1~75 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=7eeb091c78da8dab3ba9812dc2a3eaeba66288d7;p=helm.git Shell variables are all global! Fixed a bug that prevented the removal of the temporary directory after the end of the text. --- diff --git a/helm/matita/scripts/profile_cvs.sh b/helm/matita/scripts/profile_cvs.sh index 2ca809ded..818d8a39b 100755 --- a/helm/matita/scripts/profile_cvs.sh +++ b/helm/matita/scripts/profile_cvs.sh @@ -13,7 +13,7 @@ function testit { } function compile { - OLD=$PWD + LOCALOLD=$PWD cd $1 autoconf 1>/dev/null ./configure 1>/dev/null @@ -23,11 +23,11 @@ function compile { ./configure 1>/dev/null make all opt 1>/dev/null sed "s/@@OWNER@@/profiler/" matita.conf.xml.sample > matita.conf.xml - cd $OLD + cd $LOCALOLD } function run_tests { - OLD=$PWD + LOCALOLD=$PWD cd $1 ./matitaclean all mkdir .matita @@ -35,7 +35,7 @@ function run_tests { testit "gc-off" export OCAMLRUNPARAM='' testit "gc-on" - cd $OLD + cd $LOCALOLD } OLD=$PWD