Changeset 36420 for main/trunk
- Timestamp:
- 2022-08-22T10:34:56+12:00 (20 months ago)
- Location:
- main/trunk/greenstone3
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/gs3-check.sh
r36416 r36420 1 1 #!/bin/bash 2 3 4 5 2 6 3 function check_exists { … … 16 13 echo " => Found $prog_name executable in PATH" 17 14 else 18 echo "" 1>&219 15 echo "****" 1>&2 20 16 echo "* Failed to find '$prog_name'" 1>&2 21 17 echo "*" 1>&2 22 echo "* => Consider running ext /get-${ext_name}.sh" 1>&223 echo "* and then source its SETUP.bash file" 1>&218 echo "* => Consider running ext-cli/get-${ext_name}.sh" 1>&2 19 echo "* and then source ./gs3-setup-cli.sh" 1>&2 24 20 echo "****" 1>&2 25 21 echo "" 1>&2 … … 32 28 } 33 29 34 #echo "" 35 #echo "====" 36 #echo "To run Greenstone3:" 37 #echo "----" 30 check_exists java "selfcontained-jdk" 31 found_java=1 38 32 39 check_exists java "selfcontained-jdk"40 33 check_exists ant "selfcontained-ant" 41 #echo "====" 42 #echo "" 43 44 #echo "====" 45 #echo "To compile up Greenstone3:" 34 found_ant=1 46 35 47 36 check_exists javac "selfcontained-jdk" 37 found_javac=1 48 38 39 if [ $? != 0 ] ; then 40 if [ $found_java = 1 ] ; then 41 echo "Having found 'java' but not 'javac' means you can run Greenstone3, but not compile it" 42 fi 43 fi 49 44 50 51 # Adapted from:52 # https://stackoverflow.com/questions/7334754/correct-way-to-check-java-version-from-bash-script53 54 #if type -p java > /dev/null ; then55 # echo " => Found java executable in PATH"56 # _java=java57 #else58 # echo "" 1>&259 # echo "****" 1>&260 # echo "* Failed to find 'java'" 1>&261 # echo "*" 1>&262 # echo "* => Consider running ext/get-selfcontained-jdk.sh" 1>&263 # echo "* and then source its SETUP.bash file" 1>&264 # echo "****" 1>&265 # echo "" 1>&266 # echo "Exiting check sequence ..." 1>&267 # echo "" 1>&268 # exit 169 #fi70
Note:
See TracChangeset
for help on using the changeset viewer.