/[MITgcm]/mitgcm.org/front_content/make_summary
ViewVC logotype

Diff of /mitgcm.org/front_content/make_summary

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.35 by jmc, Wed Jan 2 19:40:47 2008 UTC revision 1.36 by jmc, Sat Jan 19 16:18:54 2008 UTC
# Line 19  usage() Line 19  usage()
19      exit 1      exit 1
20  }  }
21    
22    CURR_PER=`date +%Y`"_"`date +%m`
23  # defaults  # defaults
24  PERIOD=`date +%Y`"_"`date +%m`  PERIOD=$CURR_PER
25    
26  #  Parse options  #  Parse options
27  ac_prev=  ac_prev=
# Line 58  done Line 59  done
59  INDIR="/u/u0/httpd/html/testing/results/$PERIOD"  INDIR="/u/u0/httpd/html/testing/results/$PERIOD"
60  OUTDIR="/u/u0/httpd/html/testing/summary"  OUTDIR="/u/u0/httpd/html/testing/summary"
61    
62  OUTFILE=$OUTDIR"/summary_"$PERIOD".html"  OUTFILE=$OUTDIR"/output_"$PERIOD".html"
63  res_url="http://mitgcm.org/testing/"  res_url="http://mitgcm.org/testing/"
64    
65  #  Create the "latest" links  #  Create the links in $OUTFILE :
66  echo "Creating the \"latest\" file for each machine: "  echo "Creating the \"latest\" file for each machine: "
 LATEST=$OUTDIR"/latest_"$PERIOD".html"  
67  the_date=`date`  the_date=`date`
68  cat > $LATEST << EOF  cat > $OUTFILE << EOF
69  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
70      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
71    
# Line 307  for mname in $MACHINES ; do Line 307  for mname in $MACHINES ; do
307              optf=`echo $tline | cut -d " " -f 3`              optf=`echo $tline | cut -d " " -f 3`
308              DAY=`echo $tline | cut -d " " -f 2`              DAY=`echo $tline | cut -d " " -f 2`
309              URL="results/$PERIOD/$ldir"              URL="results/$PERIOD/$ldir"
310              cat <<EOF >>$LATEST              cat <<EOF >>$OUTFILE
311  <tr bgcolor="$color">  <tr bgcolor="$color">
312    <td height="0"> $mname </td>    <td height="0"> $mname </td>
313    <td> $optf </td>    <td> $optf </td>
# Line 322  EOF Line 322  EOF
322    
323  done  done
324    
325  cat >> $LATEST << EOF  cat >> $OUTFILE << EOF
326  <tr bgcolor="#00cccc">  <tr bgcolor="#00cccc">
327    <td height="0" colspan="6" align="center" >This table generated on: $the_date</td>    <td height="0" colspan="6" align="center" >This table generated on: $the_date</td>
328  </tr>  </tr>
# Line 341  EOF Line 341  EOF
341    
342  rm -f ./dir_all ./mlist  rm -f ./dir_all ./mlist
343    
344  CURR_PER=`date +%Y`"_"`date +%m`  #- put the file in place
345    chgrp gcmpack $OUTFILE
346    chmod 664 $OUTFILE
347    LATEST=$OUTDIR"/latest_"$PERIOD".html"
348    mv -f $OUTFILE $LATEST
349    
350  if test "x$PERIOD" = "x$CURR_PER" ; then  if test "x$PERIOD" = "x$CURR_PER" ; then
351      cp $LATEST ./testing.xml      cp $LATEST ./testing.xml
352      (      (

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.22