Changeset 36443 for main/trunk
- Timestamp:
- 2022-08-22T16:56:03+12:00 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/ext-cli/get-selfcontained-jdk.sh
r36436 r36443 3 3 OS_ALLCAPS=`uname | tr 'a-z' 'A-Z'` 4 4 5 selfcon_ext=selfcontained-jdk 6 installed_dir=${selfcon_ext}/zulu-jdk11-64bit 7 5 8 echo "" 6 if [ ! -d selfcontained-jdk] ; then7 echo "Checking from svn: Greenstone3's selfcontained-jdkextension"8 svn co https://svn.greenstone.org/gs3-extensions/ selfcontained-jdk/trunk selfcontained-jdk9 if [ ! -d $selfcon_ext ] ; then 10 echo "Checking from svn: Greenstone3's $selfcon_ext extension" 11 svn co https://svn.greenstone.org/gs3-extensions/$selfcon_ext/trunk $selfcon_ext 9 12 10 13 if [ $? != 0 ] ; then 11 14 echo "Error encountered checking out: " 1>&2 12 echo " svn co https://svn.greenstone.org/gs3-extensions/ selfcontained-jdk/trunk selfcontained-jdk" 1>&215 echo " svn co https://svn.greenstone.org/gs3-extensions/$selfcon_ext/trunk $selfcon_ext" 1>&2 13 16 exit 1 14 17 fi 15 18 else 16 echo "Detected directory ' selfcontained-jdk'"19 echo "Detected directory '$selfcon_ext'" 17 20 echo "=> Taken to mean that the svn check-out command has already been run" 18 21 fi 19 22 20 23 echo "" 21 if [ ! -d selfcontained-jdk/zulu-jdk11-64bit] ; then22 echo "Runing the selfcontained-jdk/PREPARE-${OS_ALLCAPS}.sh"24 if [ ! -d $installed_dir ] ; then 25 echo "Runing the $selfcon_ext/PREPARE-${OS_ALLCAPS}.sh" 23 26 24 cd selfcontained-jdk&& ./PREPARE-${OS_ALLCAPS}.sh27 cd $selfcon_ext && ./PREPARE-${OS_ALLCAPS}.sh 25 28 26 29 if [ $? != 0 ] ; then 27 30 echo "Error encountered running: " 1>&2 28 echo " cd selfcontained-jdk&& ./PREPARE-${OS_ALLCAPS}.sh" 1>&231 echo " cd $selfcon_ext && ./PREPARE-${OS_ALLCAPS}.sh" 1>&2 29 32 exit 1 30 33 fi 31 34 32 35 else 33 echo "Detected directory ' selfcontained-jdk/zulu-jdk11-64bit'"34 echo "=> Taken to mean that the selfcontained-jdk/PREPARE-${OS_ALLCAPS}.sh command has already been run"36 echo "Detected directory '$installed_dir'" 37 echo "=> Taken to mean that the $selfcon_ext/PREPARE-${OS_ALLCAPS}.sh command has already been run" 35 38 fi 36 39 37 40 38 if [ "x$JAVA_HOME" != "x$PWD/ selfcontained-jdk/zulu-jdk11-64bit" ] ; then41 if [ "x$JAVA_HOME" != "x$PWD/$installed_dir" ] ; then 39 42 echo "" 40 43 echo "To use this installed version of Apache Ant, in the top-level Greenstone3 directory run:" … … 43 46 else 44 47 echo "" 45 echo "Detected JAVA_HOME set to \$PWD/ selfcontained-jdk/zulu-jdk11-64bit"46 echo "=> Taken to mean that the selfcontained-jdkSETUP.sh file has been sourced"48 echo "Detected JAVA_HOME set to \$PWD/$installed_dir" 49 echo "=> Taken to mean that the $selfcon_ext SETUP.sh file has been sourced" 47 50 fi 48 51
Note:
See TracChangeset
for help on using the changeset viewer.