Changeset 19740 for gli/trunk/findjava.sh
- Timestamp:
- 2009-06-04T18:00:44+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/findjava.sh
r19737 r19740 124 124 125 125 # sus out search4j 126 # first look for compiled search4j executable inside GLIfolder126 # first look for compiled search4j executable inside the current folder 127 127 if [ -f search4j ]; then 128 128 SEARCH4J_EXECUTABLE=search4j 129 elif [ "x$_version" != "x" ]; then 130 # version known, look for a compiled search4j in a GS installation 131 if [ "$_version" -eq 2 -a -e "$GSDLHOME/bin/$GSDLOS/search4j" ]; then 132 SEARCH4J_EXECUTABLE=$GSDLHOME/bin/$GSDLOS/search4j 133 elif [ "$_version" -eq 3 -a -e "$GSDL3SRCHOME/bin/$GSDLOS/search4j" ]; then 134 SEARCH4J_EXECUTABLE=$GSDL3SRCHOME/bin/search4j 135 elif [ -e "../bin/$GSDLOS/search4j" ]; then 136 SEARCH4J_EXECUTABLE=../bin/$GSDLOS/search4j 137 elif [ -e "../bin/search4j" ]; then 138 SEARCH4J_EXECUTABLE=../bin/search4j 139 else 140 echo "Couldn't determine the location of the search4j executable" 141 echo "If you are running Greenstone2" 142 echo " * check GSDLHOME is set" 143 echo " * check bin/$GSDLOS/search4j exists" 144 echo " * check bin/$GSDLOS/search4j is executable" 145 echo "If you are running Greenstone3" 146 echo " * check GSDL3SRCHOME is set" 147 echo " * check bin/search4j exists" 148 echo " * check bin/search4j is executable" 149 echo " * try running 'ant compile-search4j'" 150 fi 129 elif [ -e "$GSDLHOME/bin/$GSDLOS/search4j" ]; then 130 SEARCH4J_EXECUTABLE=$GSDLHOME/bin/$GSDLOS/search4j 131 elif [ -e "$GSDL3SRCHOME/bin/$GSDLOS/search4j" ]; then 132 SEARCH4J_EXECUTABLE=$GSDL3SRCHOME/bin/search4j 133 elif [ -e "../bin/$GSDLOS/search4j" ]; then 134 SEARCH4J_EXECUTABLE=../bin/$GSDLOS/search4j 135 elif [ -e "../bin/search4j" ]; then 136 SEARCH4J_EXECUTABLE=../bin/search4j 137 else 138 echo "Couldn't determine the location of the search4j executable" 139 echo "If you are running Greenstone2" 140 echo " * check GSDLHOME is set" 141 echo " * check bin/$GSDLOS/search4j exists" 142 echo " * check bin/$GSDLOS/search4j is executable" 143 echo "If you are running Greenstone3" 144 echo " * check GSDL3SRCHOME is set" 145 echo " * check bin/search4j exists" 146 echo " * check bin/search4j is executable" 147 echo " * try running 'ant compile-search4j'" 151 148 fi 152 149
Note:
See TracChangeset
for help on using the changeset viewer.