3 # 3/3/03 - Now Runs on bawb as cltbld
4 # 5/1/03 - Now Runs on branch as cltbld
5 # 2003/02/24 - Now runs on egg as cltbld
6 # 2005/08/24 - Modified to take a branch argument (chase)
7 # 2006-06-27 - Modified to use hostname -f (dbaron)
10 if [ "x$1" != "x" ]; then
14 # Autoconf ***must*** be 2.13.
15 AC
="/usr/bin/autoconf-2.13"
17 CVSROOT
='cltbld@cvs.mozilla.org:/cvsroot'
19 PATH
="/usr/bin:/bin:/usr/local/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/etc:/usr/ucb"
21 HOST
=`/bin/hostname -f`
23 export CVSROOT CVS_RSH PATH
31 if [ "$BRANCH" = "HEAD" ]; then
32 ${CVS} -q checkout mozilla
/configure.
in mozilla
/configure mozilla
/build
/autoconf mozilla
/aclocal.
m4
34 ${CVS} -q checkout
-r $BRANCH mozilla
/configure.
in mozilla
/configure mozilla
/build
/autoconf mozilla
/aclocal.
m4
38 if [ $CO_STATUS != 0 ]
40 echo "ERROR cvs checkout exited with a non-zero exit code: $CO_STATUS"
45 ${AC} -l build
/autoconf
47 if [ $AC_STATUS != 0 ]
49 echo "ERROR autoconf exited with a non-zero exit code: $AC_STATUS"
53 ${CVS} diff configure
>/dev
/null
2>&1
55 if [ $DIFF_STATUS == 1 ]
57 ${CVS} commit
-m"Automated update from host $HOST" configure
59 if [ $CI_STATUS != 0 ]
61 echo "ERROR cvs commit exited with exit code: $CI_STATUS"
64 elif [ $DIFF_STATUS == 0 ]
68 echo "ERROR cvs diff exited with exit code: $DIFF_STATUS"