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