Changeset 36055 for main


Ignore:
Timestamp:
2022-02-08T14:02:46+13:00 (2 years ago)
Author:
kjdon
Message:

copied a couple things from gli.sh - make sure we are running from the correct directory, and run findgsdl.sh, which sources gs3-setup.sh. Had to change from sh to bash, as source was not recognised. This was prompted by me trying to recompile gli on my machine which has java 11 as default, but I have set JAVA_HOME to be 1.8 in local/gs3-setup.sh. so makegli used 11, the gli used 8, and of course it wouldn't run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/makegli.sh

    r35574 r36055  
    1 #!/bin/sh
     1#!/bin/bash
     2
    23glilang=en
    34
     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)
     7thisdir="`dirname \"$0\"`"
     8thisdir="`cd \"$thisdir\" && pwd`"
     9cd "$thisdir"
    410
    511# Don't bother compiling GLI if there's no source code (e.g. if this is a binary only)
     
    3541
    3642##  -------- 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)
     49exit_status=0
     50source ./findgsdl.sh
     51exit_status=$?
     52if [ "$exit_status" -eq 1 ]; then
     53    exit 1;
     54fi
    3755
    3856## ---- Check Javac exists ----
Note: See TracChangeset for help on using the changeset viewer.