From a62679e6efe3579529f299f5c16a7cc2ce490cfc Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 19 Aug 2003 22:01:27 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2152 --- nightly-tarball | 51 +++++++++++++++++++++++++++++++++++++++++++++++ sched/Makefile.am | 2 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100755 nightly-tarball diff --git a/nightly-tarball b/nightly-tarball new file mode 100755 index 0000000000..d06d0cd045 --- /dev/null +++ b/nightly-tarball @@ -0,0 +1,51 @@ +#!/bin/sh + +## $Id$ + +# Create a nightly tarball from CVS export + +# need to set PATH because we might be running from a cron job. +# on our Solaris servers, cvs is in /opt/misc/bin + +# Note: requires GNU tar (if you want to use other tar need to separate gzip +# step) + +if [ -d /disks/asimov ]; then + 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 + export PATH +fi + +CHECKOUT="CVSROOT=/disks/milkyway/a/users/anderson/seti/cvsroot cvs co boinc" +TMPDIR=/tmp/nightly-tarball + +FILENAME="boinc-cvs-`date +%Y-%m-%d`.tar.gz" +DESTINATION="/disks/milkyway/a/users/anderson/boinc/doc/source/nightly/" + +die() +{ + echo "ERROR in $0 on `hostname`:" + 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 +} + +if [ -z "$USER" ]; then + USER=$LOGNAME +fi + +reqeval "rm -rf $TMPDIR" +reqeval "mkdir -p $TMPDIR" +reqeval "cd $TMPDIR" +reqeval_log "$CHECKOUT" checkout.log +reqeval_log "tar czvf $FILENAME boinc" tar.log +reqeval "mv $FILENAME $DESTINATION" diff --git a/sched/Makefile.am b/sched/Makefile.am index f6ae89d1d7..250eadd557 100644 --- a/sched/Makefile.am +++ b/sched/Makefile.am @@ -34,7 +34,7 @@ libsched_a_SOURCES = \ ../lib/messages.C \ ../tools/process_result_template.C \ ../tools/backend_lib.C \ - config.h \ + sched_config.h \ sched_shmem.h \ sched_util.h