Index: trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 7232)
+++ trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 7233)
@@ -41,13 +41,5 @@
 
 scriptlogpath=$logpath/run/checkstardone/`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/checkstardone-$datetime.log
@@ -55,13 +47,5 @@
 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
-     exit
-  fi
-fi
+makedir $getstatuslogpath >> $scriptlog 2>&1
 
 cd $mars
@@ -113,13 +97,5 @@
    outpath=$logpath/checkstardone/$no
    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 
    
    for sequence in ${sequences[@]}
@@ -137,13 +113,6 @@
    
    setstatuslogpath=$logpath/setstatus/checkstardone/$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 
+
    check2=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\)  | tee $setstatuslogpath/setstatus-checkstardone-$dataset.log | grep int | sed -e 's/(int)//'`
    case $check2 in
