- Timestamp:
- 2022-02-08T14:02:46+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/makegli.sh
r35574 r36055 1 #!/bin/sh 1 #!/bin/bash 2 2 3 glilang=en 3 4 5 # Need to run this script from its own directory instead of whichever directory it may be called from 6 #currentdir=$(cd `dirname "$0"` && pwd) 7 thisdir="`dirname \"$0\"`" 8 thisdir="`cd \"$thisdir\" && pwd`" 9 cd "$thisdir" 4 10 5 11 # Don't bother compiling GLI if there's no source code (e.g. if this is a binary only) … … 35 41 36 42 ## -------- Compile the Greenstone Librarian Interface -------- 43 44 ## ---- Determine GSDLHOME ---- 45 # we want to have the same environment (eg JAVA_HOME set in local folder) as the runtime does. 46 47 # need to source a script in order to inherit the env vars it has set 48 # Exit on error code (non-zero) 49 exit_status=0 50 source ./findgsdl.sh 51 exit_status=$? 52 if [ "$exit_status" -eq 1 ]; then 53 exit 1; 54 fi 37 55 38 56 ## ---- Check Javac exists ----
Note:
See TracChangeset
for help on using the changeset viewer.