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/copyscript

    r7213 r7233  
    7070
    7171scriptlogpath=$logpath/run/copyscript/`date +%Y/%m/%d`
    72 if [ ! -d $scriptlogpath ]
    73 then
    74   mkdir -pv $scriptlogpath
    75   if [ ! -d $scriptlogpath ]
    76   then
    77      echo "could not make scriptlogpath "$scriptlogpath
    78      exit
    79   fi
    80 fi
     72makedir $scriptlogpath
    8173
    8274scriptlog=$scriptlogpath/copyscript-$datetime.log
     
    149141   copylogpath=$logpath/copyscript/$date2
    150142   echo "copylogpath: "$copylogpath >> $scriptlog 2>&1
    151    if [ ! -d $copylogpath ]
    152    then
    153      mkdir -pv $copylogpath >> $scriptlog 2>&1
    154      if [ ! -d $copylogpath ]
    155      then
    156         echo "could not make copylogpath $copylogpath -> continue " >> $scriptlog 2>&1
    157         continue
    158      fi
    159    fi
     143   makedir $copylogpath >> $scriptlog 2>&1
    160144   
    161145   #loop over all files in the directories for this date
     
    172156         echo "file (new path): "$newfile >> $scriptlog 2>&1
    173157         newpath=`dirname $newfile`
    174 #         echo "new path: "$newpath
    175158         #make sure, that the needed directories are available
    176          if [ ! -d $newpath ]
    177          then
    178             mkdir -pv $newpath >> $scriptlog 2>&1
    179             if [ ! -d $newpath ]
    180             then
    181                echo "could not make path $newpath"  >> $scriptlog 2>&1
    182                continue
    183             fi
    184          fi
     159         makedir $newpath >> $scriptlog 2>&1
    185160         
    186161         #run macros if the file is a *.rbk or a *.run file to
Note: See TracChangeset for help on using the changeset viewer.