# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# See LICENSE.txt included in this distribution for the specific
# language governing permissions and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at LICENSE.txt.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
cd ${ROOT}
then
fi
{
if [ -n "${ADMINISTRATOR}" ]
then
fi
}
export PROGDIR
while true
do
# update source code
if [ $? -ne 0 ]
then
else
# (re)generate index database
echo "Update index database" >> ${output}
# You may want to add something like the following command
# to automatically generate projects for each subdirectory in the
# SRC_ROOT directory. The -p options let you specify the project
# that should be selected by default (note that the parameter here
# is the path to the project)
# ADD_PROJECTS="-S -P -p /onnv-gate -W ${DATA_ROOT}/../configuration.xml"
-H -R ${DATA_ROOT}/../configuration.xml \
if [ $? -ne 0 ]
then
else
# notify web-servers
if [ -n "$WEBSERVERS" ]
then
for f in $WEBSERVERS
do
# Use rsync to populate the files out to the web server
# rsync -a configuration.xml stage${stage} \
# /net/`echo $f|cut -f1 -d:`/opengrok/
# if [ $? -eq 0 ]
# then
# Tell the web server to use the new configuration
-U ${f} \
-R ${DATA_ROOT}/../configuration.xml \
# fi
done
fi
# update running configuration
if [ "${stage}" = 1 ]
then
stage=2
else
stage=1
fi
fi
fi
done