Mozilla/mozilla/webtools/lxr/update-src.sh
jwz 275969156d update the lxr sources too; and log.
git-svn-id: svn://10.0.0.236/trunk@3730 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-12 22:03:28 +00:00

29 lines
567 B
Bash
Executable File

#!/bin/sh
# Run this from cron to update the source tree that lxr sees.
# Created 12-Jun-98 by jwz.
CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
export CVSROOT
PATH=/opt/local/bin:$PATH
export PATH
lxr_dir=.
db_dir=`sed -n 's@^dbdir:[ ]*\(.*\)@\1@p' < $lxr_dir/lxr.conf`
src_dir=`sed -n 's@^sourceroot:[ ]*\(.*\)@\1@p' < $lxr_dir/lxr.conf`
log=$db_dir/cvs.log
exec > $log 2>&1
set -x
# update the lxr sources
pwd
cvs -Q -d $CVSROOT update -dP
# then update the Mozilla sources
cd $src_dir
cd ..
cvs -Q -d $CVSROOT checkout MozillaSource
exit 0