1998-06-12 23:41:29 +04:00
|
|
|
#!/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
|
|
|
|
|
1998-06-13 04:43:15 +04:00
|
|
|
PATH=/opt/local/bin:/opt/cvs-tools/bin:$PATH
|
1998-06-12 23:41:29 +04:00
|
|
|
export PATH
|
|
|
|
|
|
|
|
lxr_dir=.
|
1998-06-13 02:03:28 +04:00
|
|
|
db_dir=`sed -n 's@^dbdir:[ ]*\(.*\)@\1@p' < $lxr_dir/lxr.conf`
|
1998-06-12 23:41:29 +04:00
|
|
|
src_dir=`sed -n 's@^sourceroot:[ ]*\(.*\)@\1@p' < $lxr_dir/lxr.conf`
|
1998-06-13 02:03:28 +04:00
|
|
|
log=$db_dir/cvs.log
|
1998-06-12 23:41:29 +04:00
|
|
|
|
1998-06-13 02:03:28 +04:00
|
|
|
exec > $log 2>&1
|
|
|
|
set -x
|
|
|
|
|
1998-06-13 04:43:15 +04:00
|
|
|
date
|
|
|
|
|
1998-06-13 02:03:28 +04:00
|
|
|
# update the lxr sources
|
|
|
|
pwd
|
1998-06-13 04:45:02 +04:00
|
|
|
time cvs -Q -d $CVSROOT update -dP
|
|
|
|
|
|
|
|
date
|
1998-06-13 02:03:28 +04:00
|
|
|
|
|
|
|
# then update the Mozilla sources
|
1998-06-12 23:41:29 +04:00
|
|
|
cd $src_dir
|
|
|
|
cd ..
|
1998-06-13 04:45:02 +04:00
|
|
|
time cvs -Q -d $CVSROOT checkout MozillaSource
|
1998-06-13 02:03:28 +04:00
|
|
|
|
1998-06-13 04:43:15 +04:00
|
|
|
date
|
|
|
|
|
1998-06-12 23:41:29 +04:00
|
|
|
exit 0
|