Index: trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries	(revision 7232)
+++ trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries	(revision 7233)
@@ -45,28 +45,10 @@
 
 scriptlogpath=$logpath/run/buildsequenceentries/`date +%Y/%m`
-if [ ! -d $scriptlogpath ]
-then
-  mkdir -pv $scriptlogpath 
-  if [ ! -d $scriptlogpath ]
-  then 
-     echo "could not make scriptlogpath "$scriptlogpath 
-     exit
-  fi
-fi
-
+makedir $scriptlogpath
 scriptlog=$scriptlogpath/buildsequenceentries-$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
 
 date > $lockpath/lock-buildsequenceentries.txt >> $scriptlog 2>&1 
@@ -108,13 +90,6 @@
    year2=`echo $date | cut -c 1-4`
    buildsequentriespath=$logpath/buildsequenceentries/$year2
-   if [ ! -d $buildsequentriespath ]
-      then
-      mkdir -pv $buildsequentriespath >> $scriptlog 2>&1
-      if [ ! -d $buildsequentriespath ]
-      then 
-         echo "could not make buildsequentriespath "$buildsequentriespath >> $scriptlog 2>&1
-         continue
-      fi
-   fi
+   makedir  $buildsequentriespath >> $scriptlog 2>&1
+
    check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildsequentriespath/buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'`
 
@@ -122,13 +97,6 @@
       1)   echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1
            setstatuslogpath=$logpath/setstatus/buildsequenceentries/$year2
-           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+\("\"$date\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\)  | tee $setstatuslogpath/setstatus-buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'`
            case $check2 in
