1 #!/bin/sh 2 3 PROGDIR=`dirname $0` 4 5 # REQUIRED The root of your source tree 6 SRC_ROOT=/your/src/tree/ 7 8 # REQUIRED The directory where the data files like 9 # Lucene index and hypertext cross-references are stored 10 DATA_ROOT=/var/tmp/opengrok_data 11 12 # OPTIONAL A tab separated files that contains small 13 # descriptions for paths in the source tree 14 PATH_DESC=${PROGDIR}/paths.tsv 15 16 # A modern Exubrant Ctags program 17 # from http://ctags.sf.net 18 EXUB_CTAGS=/usr/local/bin/ctags 19 20 # If you need to set properties (Ex. override the mercurial binary) 21 #PROPERTIES=-Dorg.opensolaris.opengrok.history.Mercurial=/home/trond/bin/hg 22 23 # Uncomment the following line if your source contains Mercurial repositories. 24 # SCAN_FOR_REPOS="-S" 25 26 # You might want to add more available memory, and perhaps use a server jvm? 27 #JAVA_OPTS="-server -Xmx1024m" 28 29 LOGGER="-Djava.util.logging.config.file=conf/logging.properties" 30 31 java ${JAVA_OPTS} ${PROPERTIES} ${LOGGER} -jar ${PROGDIR}/opengrok.jar ${SCAN_FOR_REPOS} -c ${EXUB_CTAGS} -s ${SRC_ROOT} -d ${DATA_ROOT} 32 33 # OPTIONAL 34 java ${LOGGER} -classpath ${PROGDIR}/opengrok.jar org.opensolaris.opengrok.web.EftarFile ${PATH_DESC} ${DATA_ROOT}/index/dtags.eftar 35