Ignore:
Timestamp:
07/30/05 01:15:40 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries

    r7232 r7233  
    4545
    4646scriptlogpath=$logpath/run/buildsequenceentries/`date +%Y/%m`
    47 if [ ! -d $scriptlogpath ]
    48 then
    49   mkdir -pv $scriptlogpath
    50   if [ ! -d $scriptlogpath ]
    51   then
    52      echo "could not make scriptlogpath "$scriptlogpath
    53      exit
    54   fi
    55 fi
    56 
     47makedir $scriptlogpath
    5748scriptlog=$scriptlogpath/buildsequenceentries-$datetime.log
    5849
    5950date >> $scriptlog 2>&1
    6051
    61 if [ ! -d $getstatuslogpath ]
    62 then
    63   mkdir -pv $getstatuslogpath >> $scriptlog 2>&1
    64   if [ ! -d $getstatuslogpath ]
    65   then
    66      echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1
    67      date  >> $scriptlog 2>&1
    68      exit
    69   fi
    70 fi
     52makedir $getstatuslogpath >> $scriptlog 2>&1
    7153
    7254date > $lockpath/lock-buildsequenceentries.txt >> $scriptlog 2>&1
     
    10890   year2=`echo $date | cut -c 1-4`
    10991   buildsequentriespath=$logpath/buildsequenceentries/$year2
    110    if [ ! -d $buildsequentriespath ]
    111       then
    112       mkdir -pv $buildsequentriespath >> $scriptlog 2>&1
    113       if [ ! -d $buildsequentriespath ]
    114       then
    115          echo "could not make buildsequentriespath "$buildsequentriespath >> $scriptlog 2>&1
    116          continue
    117       fi
    118    fi
     92   makedir  $buildsequentriespath >> $scriptlog 2>&1
     93
    11994   check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildsequentriespath/buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'`
    12095
     
    12297      1)   echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1
    12398           setstatuslogpath=$logpath/setstatus/buildsequenceentries/$year2
    124            if [ ! -d $setstatuslogpath ]
    125            then
    126              mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
    127              if [ ! -d $setstatuslogpath ]
    128              then
    129                 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
    130                 continue
    131              fi
    132            fi
     99           makedir $setstatuslogpath >> $scriptlog 2>&1
     100
    133101           check2=`root -q -b $macrospath/setstatus.C+\("\"$date\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\)  | tee $setstatuslogpath/setstatus-buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'`
    134102           case $check2 in
Note: See TracChangeset for help on using the changeset viewer.