]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
more on dir creation
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 07:18:54 +0000 (07:18 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 07:18:54 +0000 (07:18 +0000)
test/QA/simrun.sh

index 80ebb1b772bc56b842193d7db3049c53554e09f9..9785d0c4731f6fd31d139f6f1e031e5335c5f685 100755 (executable)
@@ -3,12 +3,16 @@ if ($#argv < 1) then
  echo "usage simrun.sh RunNumber"
  exit()
 endif
+echo $WORK $VERSION
 if ( ! -e $WORK ) then 
- setenv $WORK ./
+ setenv WORK ./
 endif
 cd $WORK
-if ( ! -e QATest ) then 
- mkdir QATest
+if ( $VERSION == "" ) then 
+ setenv VERSION "UNKNOWN"
+endif
+if ( ! -e QATest/$VERSION ) then 
+ mkdir QATest/$VERSION
 endif    
 cd QATest
 rm -Rf DB* *.root *.C *.log data/*
@@ -19,7 +23,10 @@ ln -si $ALICE_ROOT/test/QA/rec.C rec.C
 ln -si $ALICE_ROOT/test/QA/recqa.C recqa.C
 ln -si $ALICE_ROOT/test/QA/DB.tgz DB.tgz
 root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
-cd $WORK/QATest/data
+if ( ! -e data ) then 
+ mkdir data
+endif
+cd data
 #ln -s ../geometry.root
 ln -s ../raw.root
 ln -s ../DB