Index: trunk/MagicSoft/Mars/datacenter/scripts/runstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 7232)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 7233)
@@ -44,29 +44,10 @@
 
 scriptlogpath=$logpath/run/star/`date +%Y/%m/%d`
-if [ ! -d $scriptlogpath ]
-then
-  mkdir -pv $scriptlogpath 
-  if [ ! -d $scriptlogpath ]
-  then 
-     echo "could not make scriptlogpath "$scriptlogpath 
-     exit
-  fi
-fi
-
+makedir $scriptlogpath
 scriptlog=$scriptlogpath/runstar-$datetime.log
 
 date >> $scriptlog 2>&1
 
-
-if [ ! -d $getstatuslogpath ]
-then
-  mkdir -pv $getstatuslogpath >> $scriptlog 2>&1
-  if [ ! -d $getstatuslogpath ]
-  then 
-     echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1
-     date  >> $scriptlog 2>&1
-     exit
-  fi
-fi
+makedir $getstatuslogpath >> $scriptlog 2>&1
 
 cd $mars
@@ -175,13 +156,6 @@
   echo "inpath: "$inpath >> $scriptlog 2>&1
   echo "outpath: "$outpath >> $scriptlog 2>&1
-  if [ ! -d $outpath ]
-  then
-    mkdir -pv $outpath >> $scriptlog 2>&1
-    if [ ! -d $outpath ]
-    then 
-       echo "could not make outpath $outpath -> continue " >> $scriptlog 2>&1
-       continue
-    fi
-  fi
+  makedir $outpath >> $scriptlog 2>&1
+
   sequfile="$sequpath/$no/sequence$no2.txt"
   echo "sequfile: "$sequfile >> $scriptlog 2>&1
@@ -195,14 +169,7 @@
           echo "-> inserting the status for star for sequence $sequence into the db" >> $scriptlog 2>&1
           setstatuslogpath=$logpath/setstatus/star/$no
-          if [ ! -d $setstatuslogpath ]
-          then
-            mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
-            if [ ! -d $setstatuslogpath ]
-            then 
-               echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
-               continue
-            fi
-          fi
+          makedir $setstatuslogpath >> $scriptlog 2>&1
           setstatuslog=$setstatuslogpath/setstatus-star-$no2.log
+
           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
           case $check4 in
