Changeset 19403 for gli/trunk/client-gli.sh
- Timestamp:
- 2009-05-12T13:25:00+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/client-gli.sh
r19392 r19403 24 24 PROGNAME_EN="Greenstone Librarian Interface" 25 25 fi 26 27 # we're running GLI (or FLI) in client mode 28 GLIMODE="client" 26 29 27 30 … … 57 60 thisdir="`cd \"$thisdir\" && pwd`" 58 61 cd "$thisdir" 62 63 ## ---- Determine GSDLHOME to see if the download panel can be enabled ---- 64 # Need to source a script in order to inherit the env vars it has set. 65 # Try to detect a local GSDLHOME installation (need gs2build). If none can 66 # be found, then client-gli won't have a download panel. We're calling 67 # findgsdl.bat purely for knowing if there's a GSDLHOME around and to set and 68 # use that for downloading. If there IS a local GSDLHOME, then we can download 69 # (and build) locally, but ONLY if we have perl. Else downloading and building 70 # will have to be done remotely anyway. If Perl is found, PERLPATH will be set. 71 source ./findgsdl.sh 72 local_gs="false" 73 if [ "x$GSDLHOME" != "x" ] ; then 74 # GSDLHOME set, test for perl 75 # no need to source the findperl script since it does not set env vars 76 exit_status=0 77 ./findperl.sh 78 exit_status=$? 79 if [ "$exit_status" -ne 1 ]; then 80 local_gs="true" 81 fi 82 fi 83 59 84 60 85 ## ---- findJava ---- … … 108 133 109 134 # GS2 only requires -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar. GS3 requires more but it doesn't conflict with GS2: 110 if [ ! -d "${thisdir}/gs2build" ]; then 135 if [ "$local_gs" = "false" ]; then 136 echo "Since there's no GSDLHOME, client-GLI's download panel will be deactivated." 137 echo 111 138 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone $* 112 139 else 113 140 gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 114 # check for running bash under cygwin141 # check for running bash under cygwin 115 142 if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ; then 116 143 gsdlos=windows 117 144 fi 118 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "${thisdir}/gs2build" -gsdlos $gsdlos $* 145 echo "Perl and GSDLHOME ($GSDLHOME) detected." 146 echo "Downloading is enabled." 147 echo 148 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "$GSDLHOME" -gsdlos $gsdlos $* 119 149 fi 120 150
Note:
See TracChangeset
for help on using the changeset viewer.