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


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

1.9
date	2008.03.06.21.58.10;	author gzheng;	state Exp;
branches;
next	1.8;
commitid	Oac1AJ1yzl6c57Us;

1.8
date	2007.10.03.16.09.12;	author gzheng;	state Exp;
branches;
next	1.7;
commitid	1f7a4703bea34567;

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

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

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

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

1.3
date	2004.12.23.16.59.10;	author olawlor;	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.10
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 mail recipients in the config file.
[ -z "$mailRecip" ] && exit 0

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

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

versions=`grep -v '^#' system_list | awk -F: '{print $1}'`

status="status/email"
rm -f $status

for v in $versions
do
	len=`echo $v | wc -c`
        len=`expr $len - 1`
	blen=`expr 50 - $len`
        echo -n $v: >> $status
        count=0
        while test $count -lt $blen
        do
           echo -n " " >> $status
	   count=`expr $count + 1`
        done
        cat status/$v >> $status
#	if test $len -gt 24
#	then
#		echo "$v:		" `cat status/$v` >> $status
#	elif test $len -ge 15
#	then
#		echo "$v:				" `cat status/$v` >> $status
#	elif test $len -gt 7
#	then
#		echo "$v:					" `cat status/$v` >> $status
#	else
#		echo "$v:						" `cat status/$v` >> $status
#	fi
done

cat >> $status << END_OF_TRAILER

Autobuild status email generated on `date`
Note that this email is automatically sent 6 hours after autobuild started,
it may not reflect the most up-to-date status.
See the detailed results at:
  http://charm.cs.uiuc.edu/autobuild/cur/
Contact zhenggb@@acm.org to be removed from this list.
END_OF_TRAILER

cat $status | mail -s "Charm++ Autobuild Status" $mailRecip
echo "Message sent to $mailRecip"
@


1.9
log
@updated
@
text
@d40 22
a61 12
	if test $len -gt 24
	then
		echo "$v:	" `cat status/$v` >> $status
	elif test $len -gt 15
	then
		echo "$v:		" `cat status/$v` >> $status
	elif test $len -gt 7
	then
		echo "$v:			" `cat status/$v` >> $status
	else
		echo "$v:				" `cat status/$v` >> $status
	fi
@


1.8
log
@updated
@
text
@d10 1
a10 1
source config
d40 1
a40 1
	if test $len -gt 26
@


1.7
log
@updated format.
@
text
@d35 1
a35 1
rm $status
d40 1
a40 1
	if test $len -gt 28
@


1.6
log
@mimproved
@
text
@d46 3
d50 1
a50 1
		echo "$v:			" `cat status/$v` >> $status
@


1.5
log
@reword.
@
text
@d40 4
a43 1
	if test $len -gt 15
@


1.4
log
@improved.
@
text
@d50 2
a51 2
Autobuild ran on `date`
Note that this email is automatically sent 5 hours after autobuild started,
@


1.3
log
@updated
@
text
@d32 1
a32 1
versions=`awk -F: '{print $1}' system_list`
d39 7
a45 1
	echo "$v:" `cat status/$v` >> $status
d49 1
d51 2
d55 1
a55 1
Contact gzheng@@uiuc.edu to be removed from this list.
@


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
a46 1
Contact olawlor@@acm.org to be removed from this list.
@


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
@

