Changeset 7426 for trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
- Timestamp:
- 11/25/05 11:17:51 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/MagicSoft/Mars/datacenter/scripts/dowebplots ΒΆ
r7322 r7426 72 72 do 73 73 date >> $scriptlog 2>&1 74 path=`dirname $rootfile` 75 file=`basename $rootfile` 76 base=`echo $file | sed -e 's/.root$//g'` 77 echo "rootfile: $file" >> $scriptlog 2>&1 78 echo "path : $path" >> $scriptlog 2>&1 79 echo "base : $base" >> $scriptlog 2>&1 74 psfile=`echo $file | sed -e 's/.root$/.ps/g'` 75 echo "rootfile: $rootfile" >> $scriptlog 2>&1 76 echo "psfile: $psfile" >> $scriptlog 2>&1 80 77 81 X=0 82 while [ "$X" -le "50" ] >> $scriptlog 2>&1 83 do 84 X=$((X+1)) 85 echo "$X. step" >> $scriptlog 2>&1 78 daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1 79 datepsfile=`date +%Y%m%d -r $psfile` >> $scriptlog 2>&1 80 if [ "$datepsfile" = "" ] 81 then 82 echo "date of psfile is empty -> the file $psfile doesn't exist" >> $scriptlog 2>&1 83 echo " -> setting date to 0 and producing psfile..." >> $scriptlog 2>&1 84 datepsfile=0 85 fi 86 86 87 tabfile=$path/$base-tab$X 88 daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1 89 dategiffile=`date +%Y%m%d -r $tabfile.gif` >> $scriptlog 2>&1 90 if [ "$dategiffile" = "" ] 91 then 92 echo "date of gif-file is empty -> the file $tabfile.gif doesn't exist" >> $scriptlog 2>&1 93 echo " -> setting date to 0 and producing gif-file..." >> $scriptlog 2>&1 94 dategiffile=0 95 fi 87 echo "checking date..." >> $scriptlog 2>&1 88 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1 89 echo "date of psfile: $datepsfile" >> $scriptlog 2>&1 96 90 97 echo "checking date..." >> $scriptlog 2>&1 98 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1 99 echo "date of giffile: $dategiffile" >> $scriptlog 2>&1 91 if [ "$datepsfile" -gt "$daterootfile" ] >> $scriptlog 2>&1 92 then 93 echo "psfile is older than rootfile -> continue " >> $scriptlog 2>&1 94 continue 95 fi 100 96 101 if [ "$dategiffile" -gt "$daterootfile" ] >> $scriptlog 2>&1 102 then 103 echo "gif-file is older than root-file -> continue " >> $scriptlog 2>&1 104 continue 105 fi 97 echo "producing psfile..." >> $scriptlog 2>&1 98 ./showplot -b --save-as-ps=$psfile $rootfile >> $scriptlog 2>&1 106 99 107 echo "producing ps-file with plots for tab $X..." >> $scriptlog 2>&1 108 ./showplot -b --save-as-ps=$tabfile --tab=$X $rootfile >> $scriptlog 2>&1 109 if ! ls $tabfile.ps >> $scriptlog 2>&1 110 then 111 echo "tab $X doen't exist -> break" >> $scriptlog 2>&1 112 break 113 fi 114 echo "converting plots to gif for tab $X..." >> $scriptlog 2>&1 115 convert -verbose -rotate 90 $tabfile.ps $tabfile.gif >> $scriptlog 2>&1 116 done 100 echo "converting plots to png..." >> $scriptlog 2>&1 101 pstoimg -antialias -flip r270 -density 100 -type png -multipage $psfile >> $scriptlog 2>&1 117 102 done 118 103
Note:
See TracChangeset
for help on using the changeset viewer.