Changeset 38421


Ignore:
Timestamp:
2023-11-21T17:04:28+13:00 (5 months ago)
Author:
anupama
Message:
  1. gli must also source SETUP.bash/bat to set up env for extensions, in place of sourcing gs3-setup.sh/bat. 2. SETUP.bat needs to pass SetEnv parameter to gs3-setup.bat when calling the latter, so pass all general parameters there may be to the scripts SETUP.bat calls.
Location:
main/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/findgsdl.bat

    r25678 r38421  
    130130    del %TMP%\setgli.bat
    131131    cd "%GSDLPATH%"
    132     call gs3-setup.bat SetEnv
     132    ::call gs3-setup.bat SetEnv
     133    call .\SETUP.bat SetEnv
    133134    cd %GLIDIR%
    134135    goto gs2build
  • main/trunk/gli/findgsdl.sh

    r20186 r38421  
    149149    if [ "x$GSDL3HOME" = "x" -o "x$GSDL3SRCHOME" = "x" ]; then
    150150    cd "$gsdlpath"
    151     . ./gs3-setup.sh
     151    #. ./gs3-setup.sh
     152    . ./SETUP.bash
    152153    cd "$thisdir"
    153154    fi
  • main/trunk/greenstone3/SETUP.bat

    r38417 r38421  
     1@echo off
     2
    13:: This file tries to mimic what the SETUP.bash script does.
    24::
    35:: Useful script for developers to run and operate Greenstone3 on the command-line
    46::
    5 :: **** Needs to be sourced/called in the directory where it is located ****
     7:: Bash equivalent needs to be sourced/called in the directory where it is located
     8:: In the Batch file too, we want to call the scripts relative to where we are
     9:: The batch gs3-setup.bat script moreover can expect parameters, for example the key "SetEnv"
    610
    7 call .\gs3-setup-cli.bat
    8 call .\gs3-setup.bat
     11call .\gs3-setup-cli.bat %*
     12call .\gs3-setup.bat %*
Note: See TracChangeset for help on using the changeset viewer.