--- mitgcm.org/front_content/make_summary 2005/07/28 16:03:56 1.26 +++ mitgcm.org/front_content/make_summary 2007/09/17 16:01:33 1.31 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.26 2005/07/28 16:03:56 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.31 2007/09/17 16:01:33 jmc Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -19,89 +19,6 @@ 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 "" >> $OUTFILE - echo "" >> $OUTFILE - for i in $fresults ; do - if test "x$i" = xN ; then - echo -n "" >> $OUTFILE - else - echo -n "" >> $OUTFILE - fi - done - echo "" >> $OUTFILE - echo "" >> $OUTFILE - - done - - cat >> $OUTFILE << EOF - -
$MACH$DATE$i$i$optfile
- - -EOF - - chmod a+r $OUTFILE - echo "done" -} - - # defaults PERIOD=`date +%Y`"_"`date +%m` @@ -219,8 +136,8 @@ Intel P4 Mosix Cluster "sea" Red Hat v7.2 - AMD Athlon XP 2500+ "eddy" - Fedora Core 4 + Intel P4 "eddy" + Fedora Core 5 AMD Opteron cluster "dolphin" SuSE SLES v8.1 @@ -228,7 +145,7 @@ Mac OSX 10.3 (gcc 3.4) ACESgrid Dell - Xeon "itrda"Fedora Core 2 + Xeon "aces"Fedora Core 2