OpenGrok revision 340e2c0d70fade14c720931c87652727b941c167
583824534bccb606189d31fdb7887369db41e13cvboxsync# OpenGrok Wrapper (initial setup and cron job updating)
583824534bccb606189d31fdb7887369db41e13cvboxsync# Supported Operating Systems:
583824534bccb606189d31fdb7887369db41e13cvboxsync# - Solaris 10 (SunOS 5.10)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - Solaris 11 (SunOS 5.11)
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# - Debian (Linux)
583824534bccb606189d31fdb7887369db41e13cvboxsync# Supported Deployment Engines:
583824534bccb606189d31fdb7887369db41e13cvboxsync# - Tomcat 6
583824534bccb606189d31fdb7887369db41e13cvboxsync# - Tomcat 5.5
583824534bccb606189d31fdb7887369db41e13cvboxsync# - Glassfish
583824534bccb606189d31fdb7887369db41e13cvboxsync# Supported Environment Variables:
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_NON_INTERACTIVE Suppress Progress and Warnings Messages (*)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_STANDARD_ENV Run Time Shell Environment (Shell Script)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_CONFIGURATION User Configuration (Shell Script)
583824534bccb606189d31fdb7887369db41e13cvboxsync# Supported Environment Variables for configuring the default setup:
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_INSTANCE_BASE Base Directory of the OpenGrok User Data Area
583824534bccb606189d31fdb7887369db41e13cvboxsync# - EXUBERANT_CTAGS Full Path to Exuberant CTags
583824534bccb606189d31fdb7887369db41e13cvboxsync# - JAVA_HOME Full Path to Java Installation Root
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_APP_SERVER Application Server ("Tomcat" or "Glassfish")
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_WAR_TARGET_TOMCAT Tomcat Specific WAR Target Directory
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_WAR_TARGET_GLASSFISH Glassfish Specific WAR Target Directory
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_WAR_TARGET Fallback WAR Target Directory
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_TOMCAT_BASE Base Directory for Tomcat (contains webapps)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_GLASSFISH_BASE Base Directory for Glassfish
583824534bccb606189d31fdb7887369db41e13cvboxsync# (contains domains)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_GLASSFISH_DOMAIN Preferred Glassfish Domain Name
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_VERBOSE Enable Verbose Mode in opengrok.jar (*)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_PROGRESS Shows progress in %(percentage) of working
583824534bccb606189d31fdb7887369db41e13cvboxsync# through project, it's good to have Verbose
583824534bccb606189d31fdb7887369db41e13cvboxsync# Mode enabled too, cost of this is one more
583824534bccb606189d31fdb7887369db41e13cvboxsync# traversal of the project before indexing it(*)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_REMOTE_REPOS Disable History Cache for (remote)
583824534bccb606189d31fdb7887369db41e13cvboxsync# Repositories (*)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_SCAN_REPOS Disable Scan for repositories (*)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_SCAN_DEPTH how deep should scanning for repos go
583824534bccb606189d31fdb7887369db41e13cvboxsync# (by default 3 directories from SRC_ROOT)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_WEBAPP_CFGADDR Web app address to send configuration to
583824534bccb606189d31fdb7887369db41e13cvboxsync# (use "none" to avoid sending it to web app)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_WPREFIX Disable wildcard prefix search query
583824534bccb606189d31fdb7887369db41e13cvboxsync# support (*)
583824534bccb606189d31fdb7887369db41e13cvboxsync# - OPENGROK_DERBY if set, then indexer tries to use derby as
583824534bccb606189d31fdb7887369db41e13cvboxsync# historycache (see derby command of this
583824534bccb606189d31fdb7887369db41e13cvboxsync# - READ_XML_CONFIGURATION file with read only configuration
583824534bccb606189d31fdb7887369db41e13cvboxsync# - temporary workaround for bug # 327
583824534bccb606189d31fdb7887369db41e13cvboxsync# (*) Any Non-Empty String will enable these options
583824534bccb606189d31fdb7887369db41e13cvboxsync# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
export JAVA_HOME
${CVS:+-Dorg.opensolaris.opengrok.history.cvs=$CVS} \
${SCCS:+-Dorg.opensolaris.opengrok.history.SCCS=$SCCS} \
${CLEARCASE:+-Dorg.opensolaris.opengrok.history.ClearCase=$CLEARCASE} \
${GIT:+-Dorg.opensolaris.opengrok.history.git=$GIT} \
${DO} exit 2
for f in $@
echo $file
if test $? -eq 1
if test $? -ne 0
echo ${binary}
Linux:*)
if [ -f /etc/alternatives/java ]
/usr/lib/jvm/sun-jre-1.6 \
${OPENGROK_TOMCAT_BASE} \
if [ ! -d ${OPENGROK_INSTANCE_BASE}/log ]
${DO} mkdir ${OPENGROK_INSTANCE_BASE}/log
${DO} mkdir -p ${OPENGROK_INSTANCE_BASE}/derby
${DO} ${JAVA} ${JAVA_OPTS} ${PROPERTIES} \
${LOGGER_PROPERTIES} \
${JAVA_DEBUG} \
-jar ${OPENGROK_JAR} \
${IGNORE_PATTERNS} ${ENABLE_PROJECTS} \
${DERBY_HISTORY_CACHE} \
${SCAN_DEPTH} \
${PROGRESS} \
${EXUBERANT_CTAGS:+-c} ${EXUBERANT_CTAGS} \
${MAX_INDEXED_WORDS} ${SKIN} ${LEADING_WILDCARD} \
${READ_XML_CONF} \
-W ${XML_CONFIGURATION} \
${WEBAPP_CONFIG} \
${DO} ${JAVA} -classpath ${OPENGROK_JAR} \
${EFTAR_UPDATE} ${PATH_DESC} ${EFTAR_OUTPUT_FILE}
SunOS:5.11)
Linux:*)
mkdir -p $DATA_ROOT/derby