4 # This is the nightly build script.
5 # It does almost nothing since the process itself is kept in CVS.
7 # This causes some bootstrap problems, but we deal with that by understanding
8 # that this first stage bootstrap can not updated automatically. This script
9 # should be copied somewhere that is not in the release tree (i.e. ~/bin)
10 # and invoked periodically.
13 if [ -f $HOME/freeswan-regress-env.sh ]
15 . $HOME/freeswan-regress-env.sh
18 # /btmp is a place with a bunch of space.
19 BTMP=${BTMP:-/btmp} export BTMP
21 # CVSROOT is set if not already set to the repository location.
22 # if remote, make sure you have cvs login done already.
23 CVSROOT=${CVSROOT:-/freeswan/MASTER} export CVSROOT
25 # BRANCH can also be set to test branches.
26 BRANCH=${BRANCH:-HEAD} export BRANCH
28 # rest of not to be touched.
29 TODAY=`date +%Y_%m_%d` export TODAY
31 BUILDSPOOL=$BTMP/$USER/$BRANCH/$TODAY export BUILDSPOOL
32 mkdir -p $BUILDSPOOL || exit 3
34 cd $BUILDSPOOL || exit 4
36 exec >$BUILDSPOOL/stdout.txt
37 exec 2>$BUILDSPOOL/stderr.txt
39 cvs -Q -d $CVSROOT checkout -r $BRANCH freeswan
43 echo "Failed to checkout source code. "
47 # invoke file space cleanup first.
48 chmod +x $BUILDSPOOL/freeswan/testing/utils/regress-cleanup.pl
49 $BUILDSPOOL/freeswan/testing/utils/regress-cleanup.pl || exit 5
52 chmod +x $BUILDSPOOL/freeswan/testing/utils/regress-stage2.sh
53 $BUILDSPOOL/freeswan/testing/utils/regress-stage2.sh || exit 6
55 # warn about changes in myself.
56 cmp $BUILDSPOOL/freeswan/testing/utils/regress-nightly.sh $0
60 echo WARNING $BUILDSPOOL/freeswan/testing/utils/regress-nightly.sh differs from $0.
63 # $Id: regress-nightly.sh,v 1.5 2002/02/12 04:09:46 mcr Exp $
65 # $Log: regress-nightly.sh,v $
66 # Revision 1.5 2002/02/12 04:09:46 mcr
67 # redirect and save stdout and stderr.
69 # Revision 1.4 2002/02/11 22:05:28 mcr
70 # initial scripts to export REGRESSRESULTS to support
71 # saving of testing results to a static area.
73 # Revision 1.3 2002/01/12 03:34:33 mcr
74 # an errant BUILDTOP remained. -> BUILDSPOOL.
76 # Revision 1.2 2002/01/11 22:14:31 mcr
77 # change BUILDTOP -> BUILDSPOOL.
78 # chmod +x all the scripts, just in case.
80 # Revision 1.1 2002/01/11 04:26:48 mcr
81 # revision 1 of nightly regress scripts.