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


1.5
date	2008.03.06.21.55.45;	author gzheng;	state Exp;
branches;
next	1.4;
commitid	gRwch1HHCjCm47Us;

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

1.3
date	2004.09.11.01.27.59;	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	2004.09.02.19.52.41;	author olawlor;	state Exp;
branches;
next	;


desc
@@


1.5
log
@updated
@
text
@#!/bin/sh
#
# Bring the autobuild cvs archive up-to-date.
# Orion Sky Lawlor, olawlor@@acm.org, 2004/9/2
#

. ./config

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

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

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

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

# Check to see if every version built properly.
for v in $versions
do
	s=`cat status/$v`
	if [ "$s" != "Good" ]
	then
		echo "Error $s in platform $v-- not updating cvs."
		exit 1
	fi
done

# If so, update the CVS repository:
#    charm-nightly-test becomes charm-nightly
#    charm-nightly becomes charm-nightly-old
#    previous charm-nightly-old is removed
Do ssh $cvsMachine << EOF
Do() {
        echo "remote cvs> " \$@@
        \$@@
        err="\$?"
        if [ \$err -ne 0 ]
        then
                echo "remote cvs fatal> error code \$err during " \$@@
		exit 1
        fi
}

 Do cd $cvsRootPath
 rm -fr $cvsModule-nightly-old
 Do mv $cvsModule-nightly $cvsModule-nightly-old
 Do mv $cvsModule-nightly-test $cvsModule-nightly
 echo "remote cvs archive updated."
EOF


@


1.4
log
@support # comment in system_list
@
text
@d7 1
a7 1
source config
@


1.3
log
@Add quoting to make bad-build-exit actually work.
@
text
@d29 1
a29 1
versions=`awk -F: '{print $1}' system_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
@d35 1
a35 1
	if [ $s != "Good" ]
@


1.1
log
@Copy charm-nightly-test to charm-nightly if the build succeeds.
@
text
@d9 3
@

