tools/build/sync-configure
author benjamin@smedbergs.us
Thu, 29 Mar 2007 07:11:40 -0700
changeset 210 c99ffff23cd7b9a7cb018c72ec34cb690b2ca639
parent 85 76cd8217d3d8fe1af3fc0a8080dfebe64f815bc2
child 1263 a9a8bbdd59ea7674f03f8cc67a005520cc55c115
permissions -rwxr-xr-x
Bug 375415 - MAR generation broken when paths in the MAR contain spaces, r=cf

#!/bin/sh -x

# 3/3/03 - Now Runs on bawb as cltbld
# 5/1/03 - Now Runs on branch as cltbld
# 2003/02/24 - Now runs on egg as cltbld
# 2005/08/24 - Modified to take a branch argument (chase)
# 2006-06-27 - Modified to use hostname -f (dbaron)

BRANCH="HEAD"
if [ "x$1" != "x" ]; then
    BRANCH=$1
fi

# Autoconf ***must*** be 2.13.
AC="/usr/bin/autoconf-2.13"
CVS="/usr/bin/cvs"
CVSROOT='cltbld@cvs.mozilla.org:/cvsroot'
CVS_RSH=ssh
PATH="/usr/bin:/bin:/usr/local/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/usr/etc:/usr/ucb"
TDIR="/tmp/c-s.$$"
HOST=`/bin/hostname -f`

export CVSROOT CVS_RSH PATH

rm -rf ${TDIR}
mkdir ${TDIR}
cd ${TDIR}

if [ "$BRANCH" = "HEAD" ]; then
    ${CVS} -q checkout mozilla/configure.in mozilla/configure mozilla/build/autoconf mozilla/aclocal.m4
else
    ${CVS} -q checkout -r $BRANCH mozilla/configure.in mozilla/configure mozilla/build/autoconf mozilla/aclocal.m4
fi

cd mozilla
${AC} -l build/autoconf

${CVS} diff configure >/dev/null 2>&1
if test "$?" != "0"
then
	${CVS} commit -m"Automated update from host $HOST" configure
fi

cd /tmp
rm -rf ${TDIR}
exit 0