Mozilla/mozilla/webtools/lxr/update-src.sh
jwz 07a11059eb print date to log; know where cvs is
git-svn-id: svn://10.0.0.236/trunk@3744 18797224-902f-48f8-a5cc-f745e15eee43
1998-06-13 00:43:15 +00:00

33 lines
598 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:/opt/cvs-tools/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
date
# 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
date
exit 0