|
18 | 18 | # Supported Environment Variables for configuring the default setup:
|
19 | 19 | # - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution
|
20 | 20 | # - OPENGROK_INSTANCE_BASE Base Directory of the OpenGrok User Data Area
|
| 21 | +# - OPENGROK_SRC_ROOT directory with files to be indexed |
21 | 22 | # - OPENGROK_CTAGS Full path to Exuberant or Universal CTags binary
|
22 | 23 | # - OPENGROK_CTAGS_OPTIONS_FILE Full path to file with extra command line
|
23 | 24 | # options for CTags program (for its --options
|
@@ -104,7 +105,7 @@ Usage()
|
104 | 105 |
|
105 | 106 | exec >&2
|
106 | 107 | echo ""
|
107 |
| - echo "Usage: ${progname} <bootstrap|deploy|derby|update|updateQuietly|usage|help>" |
| 108 | + echo "Usage: ${progname} <bootstrap|deploy|update|updateQuietly|usage|help>" |
108 | 109 | echo " ${progname} index [<directory>]"
|
109 | 110 | echo " ${progname} indexpart <directory_1> [<directory_2> ..]"
|
110 | 111 | echo " ${progname} clearHistory <src_root> <repository_name>"
|
@@ -186,7 +187,11 @@ DefaultInstanceConfiguration()
|
186 | 187 |
|
187 | 188 | # REQUIRED: Source Code/Repository Root
|
188 | 189 | # (your source code or the root of all repositories)
|
189 |
| - SRC_ROOT="${OPENGROK_INSTANCE_BASE}/src" |
| 190 | + if [ -n "${OPENGROK_SRC_ROOT}" ]; then |
| 191 | + SRC_ROOT="${OPENGROK_SRC_ROOT}" |
| 192 | + else |
| 193 | + SRC_ROOT="${OPENGROK_INSTANCE_BASE}/src" |
| 194 | + fi |
190 | 195 |
|
191 | 196 | # REQUIRED: OpenGrok Generate Data Root
|
192 | 197 | # (for Lucene index and hypertext cross-references)
|
@@ -969,30 +974,6 @@ DeployWar()
|
969 | 974 | Progress
|
970 | 975 | }
|
971 | 976 |
|
972 |
| -DerbyServer() |
973 |
| -{ |
974 |
| - case "${OS_NAME}:${OS_VERSION}" in |
975 |
| - SunOS:5.10) Error "unsupported OS" ;; |
976 |
| - SunOS:5.11) |
977 |
| - /sbin/svcadm enable javadb |
978 |
| - ;; |
979 |
| - SunOS:5.12) |
980 |
| - echo "Below might need your socket permission setup" |
981 |
| - echo "see JDK1.7_51 release notes" |
982 |
| - set -x |
983 |
| - mkdir -p $DATA_ROOT/derby |
984 |
| - java -Dderby.system.home=$DATA_ROOT/derby \ |
985 |
| - -jar /usr/jdk/instances/jdk1.7.0/db/lib/derbynet.jar start |
986 |
| - ;; |
987 |
| - Linux:*) |
988 |
| - mkdir -p $DATA_ROOT/derby |
989 |
| - java -Dderby.system.home=$DATA_ROOT/derby \ |
990 |
| - -jar /usr/lib/jvm/java-6-sun/db/lib/derbynet.jar start |
991 |
| - ;; |
992 |
| - *) Error "unsupported OS" ;; |
993 |
| - esac |
994 |
| -} |
995 |
| - |
996 | 977 | #
|
997 | 978 | # Clear history index for given project.
|
998 | 979 | #
|
@@ -1020,12 +1001,6 @@ case "${1}" in
|
1020 | 1001 | DeployWar
|
1021 | 1002 | ;;
|
1022 | 1003 |
|
1023 |
| - derby) |
1024 |
| - ValidateConfiguration |
1025 |
| - CreateRuntimeRequirements |
1026 |
| - DerbyServer |
1027 |
| - ;; |
1028 |
| - |
1029 | 1004 | update)
|
1030 | 1005 | ValidateConfiguration
|
1031 | 1006 | CreateRuntimeRequirements
|
|
0 commit comments