gecko-dev/webtools/lxr/update-xref.sh

30 строки
530 B
Bash
Executable File

#!/bin/sh
# Run this from cron to update the identifier database that lxr uses
# to turn function names into clickable links.
# Created 12-Jun-98 by jwz.
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/genxref.log
exec > $log 2>&1
set -x
date
lxr_dir=`pwd`
cd $db_dir/tmp
set -e
time $lxr_dir/genxref $src_dir
chmod -R a+r .
mv xref fileidx ../
date
exit 0