--- mitgcm.org/front_content/make_summary 2003/12/07 00:23:45 1.3 +++ mitgcm.org/front_content/make_summary 2009/07/07 18:39:03 1.55 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.3 2003/12/07 00:23:45 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/front_content/make_summary,v 1.55 2009/07/07 18:39:03 jmc Exp $ # # The purpose of this script is to create HTML summaries of the # directories produced by the "parse_emails" script. @@ -19,22 +19,23 @@ exit 1 } +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) @@ -44,106 +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 summary file for $PERIOD -echo -n "Creating the summary file for the period \"$PERIOD\" ... " -cat > $OUTFILE << EOF - - - -
-$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 "
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: