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= |
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 |
|
|
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> |
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> |
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 |
( |
( |