--- mitgcm.org/front_content/make_summary	2003/12/13 20:25:04	1.8
+++ mitgcm.org/front_content/make_summary	2009/06/22 23:09:05	1.53
@@ -1,6 +1,6 @@
 #! /usr/bin/env bash
 
-# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.8 2003/12/13 20:25:04 edhill Exp $
+# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.53 2009/06/22 23:09:05 jmc Exp $
 #
 #  The purpose of this script is to create HTML summaries of the
 #  directories produced by the "parse_emails" script.
@@ -19,105 +19,23 @@
     exit 1
 }
 
-old_summary()
-{
-    #  Create the old-style summary file for $PERIOD
-    echo -n "Creating the summary file for the period \"$PERIOD\" ...  "
-    cat > $OUTFILE << EOF
-
-
-
-  
-    MITgcm testing summary
-    
-    
-  
-  
-    
-
-EOF
-
-    # all_files=`find $INDIR -name summary.txt`
-    all_files=`( cd $INDIR ; find . -name summary.txt )`
-
-    for f in $all_files ; do
-	
-	file=$INDIR"/"${f/.\//}
-	grep "^fresults" $file > /dev/null 2>&1
-	RETVAL=$?
-	if test "x$RETVAL" != x0 ; then
-	    continue
-	fi
-	
-	url=`echo $file | sed -e 's|/u/edhill/www|http://mitgcm.org/~edhill|'`
-	url=`echo $url | sed -e 's|summary.txt||'`
-	MACH=
-	fresults=
-	color="#eeeeee"
-	
-	source $file
-	echo $fresults | grep FAIL > /dev/null 2>&1
-	if test "x$?" = x0 ; then
-	    color="#ff99ff"
-	fi
-	echo $fresults | grep pass > /dev/null 2>&1
-	if test "x$?" = x0 ; then
-	    color="#99ffff"
-	fi
-	
-	gm_state=`echo $file | sed -e 's/summary.txt/genmake_state/g'`
-	if test -r $gm_state ; then
-	    grep '^OPTFILE=' $gm_state > ./tmp_state
-	    source ./tmp_state
-	else
-	    optfile="unknown"
-	fi
-	optfile=`echo $OPTFILE | awk -F '/' '{print $NF}'`
-	
-	echo "" >> $OUTFILE
-	echo "| $MACH | " >> $OUTFILE
-	echo "$DATE | " >> $OUTFILE
-	for i in $fresults ; do
-	    if test "x$i" = xN ; then
-		echo -n "$i | " >> $OUTFILE
-	    else
-		echo -n "$i | " >> $OUTFILE
-	    fi
-	done
-	echo "$optfile | " >> $OUTFILE
-	echo "
" >> $OUTFILE
-	
-    done
-    
-    cat >> $OUTFILE << EOF
-
-    
-  
-
-EOF
-
-    chmod a+r $OUTFILE
-    echo "done"
-}
-
-
+CURR_PER=`date +%Y`"_"`date +%m`
 # defaults
-PERIOD=`date +%Y`"_"`date +%m`
+PERIOD=$CURR_PER
 
 #  Parse options
 ac_prev=
 for ac_option ; do
-        
+
     # If the previous option needs an argument, assign it.
     if test -n "$ac_prev"; then
         eval "$ac_prev=\$ac_option"
         ac_prev=
         continue
     fi
-    
+
     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
-    
+
     case $ac_option in
 	
 	-help | --help | -h | --h)
@@ -127,25 +45,28 @@
             ac_prev=PERIOD ;;
         --date=* | -date=*)
             PERIOD=$ac_optarg ;;
-        
+
         *)
 	    echo "Error: don't understand argument \"$ac_option\""
 	    usage
             ;;
-        
+
      esac
-     
+
 done
 
+#INDIR="/net/orwell/export/export-9/mitgcm-testing/results/$PERIOD"
+#OUTDIR="/home/jmc/mitgcm/test_web/summary"
 INDIR="/u/u0/httpd/html/testing/results/$PERIOD"
 OUTDIR="/u/u0/httpd/html/testing/summary"
-OUTFILE=$OUTDIR"/summary_"$PERIOD".html"
 
-#  Create the "latest" links
+OUTFILE=$OUTDIR"/output_"$PERIOD".html"
+res_url="http://mitgcm.org/testing/"
+
+#  Create the links in $OUTFILE :
 echo "Creating the \"latest\" file for each machine: "
-LATEST=$OUTDIR"/latest_"$PERIOD".html"
 the_date=`date`
-cat > $LATEST << EOF
+cat > $OUTFILE << EOF
 
 
@@ -165,9 +86,9 @@
 
   
   
-    The MITgcm model is tested 
-      (compiled and run) in an automated fashion on a varirety of 
-      different machines.  The following is a summary of the MITgcm 
+    
The MITgcm model is tested
+      (compiled and run) in an automated fashion on a varirety of
+      different machines.  The following is a summary of the MITgcm
       verification suite for the time period: $PERIOD.
 
     The machine naming scheme is:
@@ -175,42 +96,93 @@
        | Machine Type |  Nickname | 
         Notes |  
 
-       | Intel P4 |  "faulks" |  
-        Red Hat 7.3 (the "original" testing machine) |  
-       | Intel P4 |  "shelley" | 
-        Red Hat 9 |  
+      
+        | Intel P4 |  "faulks" |  Fedora Core 6  |  
+      
+        |  Intel P4  |  "meander" |  Ubuntu 8.10  |  
+      
+        |  Intel P4  |  "lagoon" |  Fedora 8  |  
+      
+        |  Opteron Barcelona  |  "harbor" |  Ubuntu 8.04 LTS (x86_64) |  
+      
+        |  Intel Xeon (Woodcrest)  |  "dickens" |  Fedora 10 (x86_64) |  
+      
+        |  Intel Core 2 duo  |  "danton" |  Fedora 8 (x86_64) |  
+
+      
+        |  ACESgrid Dell Xeon  | 
+        "aces" | Fedora Core 2 |  
+
+      
+        | Intel Xeon (Woodcrest) cluster
+         |  "beagle" | Rocks 5.2 (x86_64) |  
 
-       |  Intel P3/P4 Beowulf  |  "myrinet" | 
-        MITgcm cluster 
+      
 
-       |  SGI Altix  |  "orion" | 
-        JPL Supercomputing and 
-        Visualization Facility |   
-       |  IBM POWER3 SP  |  "bf" | 
-        NCAR Blackforest
+      
+        |  SGI Altix Cluster  |  "columbia" | 
+        
+        NAS Columbia  |   
+
+      
+        |  IBM POWER4 SP  |  "edvir" |   AIX 5.2  |   
+      
+        |  IBM POWER5+ SP  |  "blueice" | 
+        NCAR Blueice
          |   
 
-       |  IBM POWER4 SP  |  "bs" | 
-        NCAR Bluesky
-         |   
-       |  AMD Opteron  |  "eaps" | 
-        SuSE Linux 9.0 (x86-64) |   
+      
+        |  AMD Opteron  |  "starp" |  SuSE SLES 10 (AMD64) |   
 
-       |  Sun UltraSparc  |  "slough" | 
-        Solaris 8 |   
-       |  Intel P4 Mosix Cluster  |  "sea" | 
-        Red Hat v7.2 |   
+      
+        |  AMD Opteron  |  "solasrv" |  Solaris 10 |   
+      
+        |  Sun UltraSparc IV  |  "rays" |  Solaris 10 |   
+      
+      
+        |  NEC SX-8  |  "sx8" |  Super-UX  |   
+      
+        |  Cray XD1 (AMD Opteron)  |  "xd1" | 
+        Cray HPC enhanced Linux 2.6.5  |   
+      
+        |  PowerPC970MP cluster  |  "bigred" | 
+        SuSE SLES 9 (PPC)  |   
+
+      
 
        |   |