mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-17 20:34:34 +00:00
51dd41a680
(like cmd/xfe/icons/anim-sgi/)
37 lines
677 B
Bash
Executable File
37 lines
677 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
|
|
time cvs -d $CVSROOT update -dP
|
|
|
|
date
|
|
|
|
# then update the Mozilla sources
|
|
cd $src_dir
|
|
cd ..
|
|
|
|
# jwz: let's check out "mozilla" instead of merely "MozillaSource".
|
|
time cvs -Q -d $CVSROOT checkout -P mozilla
|
|
|
|
date
|
|
|
|
exit 0
|