Last change
on this file since 36570 was 36570, checked in by davidb, 20 months ago |
Fixed missing word from echo/print statement
|
-
Property svn:executable
set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[36409] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | OS_ALLCAPS=`uname | tr 'a-z' 'A-Z'`
|
---|
| 4 |
|
---|
[36443] | 5 | selfcon_ext=selfcontained-jdk
|
---|
| 6 | installed_dir=${selfcon_ext}/zulu-jdk11-64bit
|
---|
| 7 |
|
---|
[36409] | 8 | echo ""
|
---|
[36443] | 9 | if [ ! -d $selfcon_ext ] ; then
|
---|
[36570] | 10 | echo "Checking out from svn: Greenstone3's $selfcon_ext extension"
|
---|
[36443] | 11 | svn co https://svn.greenstone.org/gs3-extensions/$selfcon_ext/trunk $selfcon_ext
|
---|
[36409] | 12 |
|
---|
| 13 | if [ $? != 0 ] ; then
|
---|
| 14 | echo "Error encountered checking out: " 1>&2
|
---|
[36443] | 15 | echo " svn co https://svn.greenstone.org/gs3-extensions/$selfcon_ext/trunk $selfcon_ext" 1>&2
|
---|
[36409] | 16 | exit 1
|
---|
| 17 | fi
|
---|
| 18 | else
|
---|
[36443] | 19 | echo "Detected directory '$selfcon_ext'"
|
---|
[36409] | 20 | echo "=> Taken to mean that the svn check-out command has already been run"
|
---|
| 21 | fi
|
---|
| 22 |
|
---|
| 23 | echo ""
|
---|
[36443] | 24 | if [ ! -d $installed_dir ] ; then
|
---|
| 25 | echo "Runing the $selfcon_ext/PREPARE-${OS_ALLCAPS}.sh"
|
---|
[36409] | 26 |
|
---|
[36443] | 27 | cd $selfcon_ext && ./PREPARE-${OS_ALLCAPS}.sh
|
---|
[36409] | 28 |
|
---|
| 29 | if [ $? != 0 ] ; then
|
---|
| 30 | echo "Error encountered running: " 1>&2
|
---|
[36443] | 31 | echo " cd $selfcon_ext && ./PREPARE-${OS_ALLCAPS}.sh" 1>&2
|
---|
[36409] | 32 | exit 1
|
---|
| 33 | fi
|
---|
| 34 |
|
---|
| 35 | else
|
---|
[36443] | 36 | echo "Detected directory '$installed_dir'"
|
---|
| 37 | echo "=> Taken to mean that the $selfcon_ext/PREPARE-${OS_ALLCAPS}.sh command has already been run"
|
---|
[36409] | 38 | fi
|
---|
| 39 |
|
---|
| 40 |
|
---|
[36443] | 41 | if [ "x$JAVA_HOME" != "x$PWD/$installed_dir" ] ; then
|
---|
[36409] | 42 | echo ""
|
---|
[36436] | 43 | echo "To use this installed version of Apache Ant, in the top-level Greenstone3 directory run:"
|
---|
| 44 | echo " source ./gs3-setup-cli.sh"
|
---|
[36409] | 45 | echo ""
|
---|
| 46 | else
|
---|
| 47 | echo ""
|
---|
[36443] | 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"
|
---|
[36409] | 50 | fi
|
---|
| 51 |
|
---|
| 52 | echo ""
|
---|
Note:
See
TracBrowser
for help on using the repository browser.