Messages revision 838924562130977ca1a3d3839d146fcda39ea1af
970N/A# Supported Environment Variables: 970N/A# - OPENGROK_STANDARD_ENV Run Time Shell Environment (Shell Script) 1447N/A# - OPENGROK_CONFIGURATION User Configuration (Shell Script) 970N/A# Supported Environment Variables for configuring the default setup: 970N/A# - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution 970N/A# - OPENGROK_JAR OpenGrok java package 970N/A# - JAVA_HOME Full Path to Java Installation Root 970N/A# - JAVA Full Path to java binary (to enable 64bit JDK) 970N/A# - JAVA_OPTS Java options (e.g. for JVM memory increase view 970N/A echo "Usage: ${PROGNAME} [options] <text>" 970N/A echo " -e|--expire human readable date string of expiration (default +5 min) (*)" 970N/A echo " --expire-timestamp explicit UTC timestamp for expiration in sec" 970N/A echo " -c|--class css class to apply for the message (default info)" 970N/A echo " -p|--port remote port number of the application (default 2424)" 970N/A echo " -s|--server remote server of the application (default localhost)" 970N/A echo " --type type of the message (default normal)" 970N/A echo " (*) see man date: option --date" 970N/A echo " css classes: success, info, warning, error" 970N/A echo " types: normal, abort" 970N/A echo " text: supports html markup" 1105N/A echo " Optional environment variables:" 970N/A echo " OPENGROK_CONFIGURATION - location of your configuration" 970N/A echo " See the code for more information on configuration options /" \ 970N/A echo "Argument \"$1\" expects a value" 970N/A echo "Configuration loaded" 1339N/A# Find and load relevant configuration 1339N/A# Taken (and modified) from original OpenGrok shell wrapper 1105N/A if [ -f "${OPENGROK_STANDARD_ENV}" ] 970N/A . "${OPENGROK_STANDARD_ENV}" 1423N/A if [ -n "${OPENGROK_CONFIGURATION}" -a -f "${OPENGROK_CONFIGURATION}" ] 1105N/A # Load the Local OpenGrok Configuration Environment 970N/A . "${OPENGROK_CONFIGURATION}" 970N/A if [ -z "${OPENGROK_DISTRIBUTION_BASE}" ] 970N/A if [ -d "${SCRIPT_DIRECTORY}/../dist" -a \ 970N/A # Handle Developer Build Environments 1189N/A # Handle Binary Distributions 970N/A # REQUIRED: Java Virtual Machine 1189N/A # REQUIRED: OpenGrok library 1132N/A# Find java home based on your system information 1132N/A# Taken from original OpenGrok shell wrapper 1132N/A echo "Cannot determine operating system version" 970N/A if [ -z "${javaHome}" ] 1003N/A echo "Unable to determine Java Home" \ 1360N/A "for ${OS_NAME} ${OS_VERSION}" 970N/A echo "Missing Java Home ${javaHome}" 970N/A echo "Bad syntax. Expecting some arguments." 1105N/A echo "Maybe try --help option?" 970N/A echo "Bad syntax. The text should be the last argument." 970N/A echo "Stopped near \"$@\"." 970N/A echo "Check the quotes around the arguments?" 1261N/A break # exit the while cycle 970N/A echo "Bad syntax. The text must be specified only once." 1152N/A echo "Consider installing gnu date and setting env variable DATE."