Changeset 7318 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 08/26/05 07:04:47 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
r7316 r7318 75 75 file=`basename $rootfile` 76 76 base=`echo $file | sed -e 's/.root$//g'` 77 echo " file$file" >> $scriptlog 2>&178 echo "path $path" >> $scriptlog 2>&179 echo "base $base" >> $scriptlog 2>&177 echo "rootfile: $file" >> $scriptlog 2>&1 78 echo "path : $path" >> $scriptlog 2>&1 79 echo "base : $base" >> $scriptlog 2>&1 80 80 81 if ls $path/$base-tab*.gif >> $scriptlog 2>&182 then83 continue84 fi81 # if ls $path/$base-tab*.gif >> $scriptlog 2>&1 82 # then 83 # continue 84 # fi 85 85 86 tabfile=$path/$base-tab87 daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&188 dategiffile=`date +%Y%m%d -r $tabfile1.gif` >> $scriptlog 2>&189 if [ "$dategiffile" = "" ]90 then91 dategiffile=5000000092 fi93 # now=`date +%Y%m%d`94 95 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&196 echo "date of giffile: $dategiffile" >> $scriptlog 2>&197 98 if [ "$dategiffile" -lt "$daterootfile" ] >> $scriptlog 2>&199 then100 continue101 fi102 103 echo "produce plots..." >> $scriptlog 2>&1104 86 X=0 105 87 while [ "$X" -le "50" ] >> $scriptlog 2>&1 … … 107 89 X=$((X+1)) 108 90 echo "$X. step" >> $scriptlog 2>&1 91 92 tabfile=$path/$base-tab$X 93 daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1 94 dategiffile=`date +%Y%m%d -r $tabfile.gif` >> $scriptlog 2>&1 95 if [ "$dategiffile" = "" ] 96 then 97 echo "date of gif-file is empty -> the file $tabfile.gif doesn't exist" >> $scriptlog 2>&1 98 echo " -> setting date to 0 and producing gif-file..." >> $scriptlog 2>&1 99 dategiffile=0 100 fi 101 102 echo "checking date..." >> $scriptlog 2>&1 103 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1 104 echo "date of giffile: $dategiffile" >> $scriptlog 2>&1 105 106 if [ "$dategiffile" -gt "$daterootfile" ] >> $scriptlog 2>&1 107 then 108 echo "gif-file is older than root-file -> continue " >> $scriptlog 2>&1 109 continue 110 fi 111 112 echo "producing ps-file with plots for tab $X..." >> $scriptlog 2>&1 109 113 ./showplot -b --save-as-ps=$tabfile$X --tab=$X $rootfile >> $scriptlog 2>&1 110 114 if ! ls $tabfile$X.ps >> $scriptlog 2>&1 111 115 then 116 echo "tab $X doen't exist -> break" >> $scriptlog 2>&1 112 117 break 113 118 fi 119 echo "converting plots to gif for tab $X..." >> $scriptlog 2>&1 114 120 convert -rotate 90 $tabfile$X.ps $tabfile$X.gif >> $scriptlog 2>&1 115 121 done
Note:
See TracChangeset
for help on using the changeset viewer.