head	1.9;
access;
symbols
	charm6_1:1.9
	charm_6_0_1:1.9
	charm6_0_1:1.9
	charm6_0:1.8
	ChaNGa_1-0:1.8
	charm5_9:1.8;
locks; strict;
comment	@# @;


1.9
date	2009.02.06.21.44.46;	author gzheng;	state Exp;
branches;
next	1.8;
commitid	GuAkHb3c8GDZaqBt;

1.8
date	2005.04.30.03.12.36;	author gzheng;	state Exp;
branches;
next	1.7;

1.7
date	2005.02.17.04.33.45;	author gzheng;	state Exp;
branches;
next	1.6;

1.6
date	2005.01.23.04.10.49;	author gzheng;	state Exp;
branches;
next	1.5;

1.5
date	2005.01.12.08.48.22;	author gzheng;	state Exp;
branches;
next	1.4;

1.4
date	2005.01.08.21.36.56;	author gzheng;	state Exp;
branches;
next	1.3;

1.3
date	2005.01.04.20.16.13;	author gzheng;	state Exp;
branches;
next	1.2;

1.2
date	2004.09.04.21.02.53;	author olawlor;	state Exp;
branches;
next	1.1;

1.1
date	2003.02.21.19.03.16;	author olawlor;	state Exp;
branches;
next	;


desc
@@


1.9
log
@updated
@
text
@#!/bin/sh
#
# Bring the autobuild website status up-to-date.
# This script is called by the build_on_system scripts,
# which run simultaniously, so this script needs to be 
# reentrant.
# Orion Sky Lawlor, olawlor@@acm.org, 2002/2/3
#

. ./config

# Give up if there's no web machine in the config file.
[ -z "$webMachine" ] && exit 0

# Exit giving this reason for failure.
Die() {
	echo "web fatal> " $@@ 
	exit 1
}

# Run this command or die
Do() {
	echo "web> " $@@
	$@@ 
	err="$?"
	if [ $err -ne 0 ] 
	then
		Die "error code $err during web> " $@@ 
	fi
}

DoNoChk() {
	echo "web> " $@@
	$@@ 
}

#versions=`grep -v '^#' system_list | awk -F: '{print $1}'`
versions=`sed -e 's/#//' system_list | awk -F: '{print $1}' | uniq`

outDir="web/$$/"
Do mkdir $outDir
out="web/$$/index.html"
cat > $out << END_HEADER
<html>
<title>Charm++ Automated-Build Status</title>
<body bgcolor="#ffFFff">
<h1>Charm++ Automated-Build Status</h1>
This page generated on `date` <br>
Download <a href="${cvsModule}_src.tar.gz">the Charm++ source code</a> used here.<br>
The most recent nightly build charm++ source is also available at cvs server with module "charm-nightly-test".<br>
View <a href="../prev/">the previous autobuild status</a>, or 
<a href="../">all previous status pages</a>.<br>
Latest precompiled binaries (including source) can be found <a href="../bin">here</a>.<br><br>

<table border=2 width=100%>
<tr>
<td><B>Version</B></td> <td><B>Status</B></td> <td><B>Description</B></td> <td><B>Machine</B></td><td><B>Build Options</B></td><td><B>Test Options</B></td>
END_HEADER

for v in $versions
do
        m=`grep '^'$v":" system_list 2>/dev/null`
       	l=`grep $v":" system_list`
        buildMachine=`echo $l | awk -F: '{print $2}' | awk -F@@ '{print $2}'`
        description=`echo $l | awk -F: '{print $10}'`
        opts=`echo $l | awk -F: '{print $8}'`
        testopts=`echo $l | awk -F: '{print $9}'`
        test -z "$testopts" && testopts="&nbsp"
	if test -z "$m"
	then
		status='Test skipped'
		echo "Skipped" >  messages/$v
	else
                if test -f status/$v
                then
		  status=`cat status/$v`
                else
                  status="Unknown"
                fi
	fi
	cat >> $out << END_ROW
	<tr><td style="width: 18%"><a href="$v.txt">$v</a></td> 
        <td style="width: 22%">$status</td> 
        <td>$description</td> <td>$buildMachine</td>
        <td style="width: 10%">$opts</td>
        <td style="width: 10%">$testopts</td> </tr>
END_ROW
	DoNoChk cp messages/$v $outDir/$v.txt
done

cat >> $out << END_TRAILER
</table>
<br>
Maintained by <A HREF="mailto:gzheng@@uiuc.edu">Gengbin Zheng</A>.<br>
Return to <a href="/">Charm++ Home Page</a>
</BODY></HTML>
END_TRAILER

Do scp $outDir/* $webMachine:$webMachCur

rm -fr $outDir
@


1.8
log
@updated.
@
text
@d10 1
a10 1
source config
d32 5
d57 1
a57 1
<td><B>Version</B></td> <td><B>Status</B></td> <td><B>Description</B></td> <td><B>Machine</B></td>
d65 4
a68 1
        description=`echo $l | awk -F: '{print $9}'`
d74 6
a79 1
		status=`cat status/$v`
d82 5
a86 3
	<tr><td><a href="$v.txt">$v</a></td> 
        <td style="width: 25%">$status</td> 
        <td>$description</td> <td>$buildMachine</td></tr>
d88 1
a88 1
	Do cp messages/$v $outDir/$v.txt
@


1.7
log
@a minor change to get uniq versions.
@
text
@d48 1
a48 1
Latest precompiled binaries can be found <a href="../bin">here</a>.<br><br>
@


1.6
log
@updated
@
text
@d33 1
a33 1
versions=`sed -e 's/#//' system_list | awk -F: '{print $1}'`
@


1.5
log
@for machines line with #, display skip test.
@
text
@d60 1
a60 1
        description=`echo $l | awk -F: '{print $8}'`
@


1.4
log
@improved with more information.
@
text
@d32 2
a33 1
versions=`grep -v '^#' system_list | awk -F: '{print $1}'`
d57 2
a58 1
        l=`grep $v":" system_list`
d60 8
a67 1
        description=`echo $l | awk -F: '{print $7}'`
d70 1
a70 1
        <td style="width: 25%">`cat status/$v`</td> 
@


1.3
log
@improved
@
text
@d32 1
a32 1
versions=`awk -F: '{print $1}' system_list`
d44 1
d47 1
a47 1
Latest precompiled binaries can be found <a href="../bin">here</a>.<br>
d58 1
a58 1
        description=`echo $l | awk -F: '{print $6}'`
d60 3
a62 1
	<tr><td><a href="$v.txt">$v</a></td> <td>`cat status/$v`</td> <td>$description</td> <td>$buildMachine</td></tr>
d69 1
@


1.2
log
@Two changes:
  1.) Replace "charm" with "${cvsModule}".  This is more to
     allow testing of "charm-stable", etc. than to start expanding
     beyond charm.
  2.) Added "update_cvs" file, which if all tests pass,
     copies the CVS repository directory charm-nightly-test to
     charm-nightly.  This is for maintaining an up-to-date,
     but automatically tested version of Charm++.
@
text
@d46 1
d50 1
a50 1
<td><B>Version</B></td> <td><B>Status</B></td>
d55 3
d59 1
a59 1
	<tr><td><a href="$v.txt">$v</a></td> <td>`cat status/$v`</td></tr>
d66 1
@


1.1
log
@Re-wrote this automated build system, after a hard drive crash
destroyed the 2002 version.  Since I don't want to lose everything
again, I'm checking this one in.
@
text
@d12 3
d43 1
a43 1
Download <a href="charm_src.tar.gz">the Charm++ source code</a> used here.<br>
@

