Changeset 7479 for trunk


Ignore:
Timestamp:
02/03/06 19:05:45 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7477 r7479  
    2222   * datacenter/scripts/sourcefile:
    2323     - implemented two new functions: getdolist, finish
     24     - implemented usage of function finish in other functions
     25
     26   * datacenter/scripts/movingrawfiles:
     27     - implemented zipping of rawfiles
    2428
    2529   * datacenter/scripts/buildsequenceentries, checkfilesforsequenceavail,
  • trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles

    r7460 r7479  
    4444# workaround for rawfiles with wrong timing
    4545#  newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`
    46   newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'`
    47   newdir=`dirname $newrawfile`
    48   if [ ! -d $newdir ]
    49   then
    50     echo "make dir "$newdir
    51     mkdir -p $newdir
    52   fi
     46   newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'`
     47   newdir=`dirname $newrawfile`
     48   if [ ! -d $newdir ]
     49   then
     50     mkdir -pv $newdir
     51     if [ ! -d $newdir ]
     52     then
     53        echo "could not make dir "$newdir
     54        exit
     55     fi
     56   fi
    5357
    54   mv -v $rawfile $newrawfile
     58   if gzip -1c $rawfile > $newrawfile.gz
     59   then
     60      rm -v $newrawfile
     61      rm -v $rawfile
     62   fi
    5563done
    5664
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r7477 r7479  
    5050
    5151
     52function finish()
     53{
     54   rm -v $todofile
     55   rm -v $lockfile
     56   date
     57   exit
     58}
     59
    5260function makedir()
    5361{
     
    5866     then
    5967        echo "could not make dir "$@
    60         exit
     68        finish
    6169     fi
    6270   fi
    63 }
    64 
    65 function finish()
    66 {
    67    rm -v $todofile
    68    rm -v $lockfile
    69    date
    70    exit
    7171}
    7272
Note: See TracChangeset for help on using the changeset viewer.