2003-06-26 01:24:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
## $Id$
|
|
|
|
|
|
|
|
# Automate a clean check out, make all, check, distcheck. On error, complain
|
|
|
|
# to stdout and return 1. Suitable for a cron job.
|
|
|
|
|
2003-06-26 21:30:58 +00:00
|
|
|
# need to set PATH because we might be running from a cron job.
|
|
|
|
# on our Solaris servers, cvs is in /opt/misc/bin
|
2003-06-27 18:36:22 +00:00
|
|
|
|
|
|
|
if [ -d /disks/asimov ]; then
|
2003-08-13 21:38:15 +00:00
|
|
|
PATH=/disks/philmor/a/users/quarl/local/Node-SOLARIS/bin:/disks/philmor/a/users/quarl/local/bin:/disks/philmor/a/users/quarl/bin:/usr/local/gcc/bin:/usr/local/gdb/bin:/usr/ccs/bin:/usr/local/cygnus:/disks/milkyway/a/users/anderson/seti/bin:/disks/cyclops/c/users/seti/s4/siren/bin:/disks/cyclops/c/users/seti/s4/siren/scripts:/disks/cyclops/c/users/seti/s4/siren/scripts/s4pipeline:/opt/misc/bin:/usr/ucb:/usr/bin:/usr/sbin:/usr/openwin/bin:/usr/dt/bin:/opt/misc/rsi/idl/bin:/opt/misc/lib/teTeX/bin:/disks/asimov/a/lang/gcc/bin:.:/usr/local/sbin:/usr/local/bin:/sbin:/usr/games
|
2003-06-27 18:36:22 +00:00
|
|
|
export PATH
|
|
|
|
fi
|
2003-06-26 21:30:58 +00:00
|
|
|
|
2003-11-04 00:27:32 +00:00
|
|
|
CHECKOUT="CVSROOT=/usr/local/warez/cvsroot cvs co boinc"
|
2003-06-26 01:24:53 +00:00
|
|
|
TMPDIR=/tmp/testbase
|
|
|
|
|
|
|
|
die()
|
|
|
|
{
|
2003-06-26 21:32:17 +00:00
|
|
|
echo "ERROR in testbase on `hostname`:"
|
2003-06-26 01:24:53 +00:00
|
|
|
echo "$1"
|
|
|
|
[ "$2" ] && cat "$2"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
reqeval()
|
|
|
|
{
|
|
|
|
eval "$1" || die "error executing: $1"
|
|
|
|
}
|
|
|
|
|
|
|
|
reqeval_log()
|
|
|
|
{
|
|
|
|
eval "$1" > $2 2>&1 || die "error executing: $1" $2
|
|
|
|
}
|
|
|
|
|
2003-08-12 18:25:55 +00:00
|
|
|
if [ -z "$USER" ]; then
|
|
|
|
USER=$LOGNAME
|
2003-08-21 09:27:43 +00:00
|
|
|
export USER
|
2003-08-12 18:25:55 +00:00
|
|
|
fi
|
2003-06-26 01:24:53 +00:00
|
|
|
|
2003-12-20 09:14:38 +00:00
|
|
|
chmod -R u+w $TMPDIR 2>/dev/null
|
2003-06-26 01:24:53 +00:00
|
|
|
reqeval "rm -rf $TMPDIR"
|
|
|
|
reqeval "mkdir -p $TMPDIR"
|
|
|
|
reqeval "cd $TMPDIR"
|
|
|
|
reqeval_log "$CHECKOUT" checkout.log
|
|
|
|
reqeval "cd boinc"
|
|
|
|
reqeval_log "./configure" configure.log
|
|
|
|
reqeval_log "make all" make_all.log
|
|
|
|
reqeval_log "make check" make_check.log
|
2003-10-15 08:00:09 +00:00
|
|
|
# reqeval_log "make distcheck" make_distcheck.log
|