Index: trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7304)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7305)
@@ -89,4 +89,7 @@
    dategiffile=`date +%Y%m%d -r $tabfile1.gif`
 #   now=`date +%Y%m%d`
+
+   echo "date of rootfile: $daterootfile"
+   echo "date of giffile: $dategiffile"
    
    if [ "$dategiffile" -lt "$daterootfile" ]
@@ -96,6 +99,8 @@
    
    echo "produce plots..."
+   X=0
    while [ "$X" -le "50" ]
    do 
+      X=$((X+1))
       echo "$X's step"
       ./showplot --save-as-ps=$tabfile$X -tab=$X $rootfile
@@ -105,5 +110,4 @@
       fi
       convert -rotate $tabfile$X.ps $tabfile$X.gif
-      X=$((X+1))
    done
 done
