Ignore:
Timestamp:
2011-08-03T21:27:23+12:00 (12 years ago)
Author:
ak19
Message:

The method of locating perl has changed once more: util.pm now defines the fuction get_perl_exec which is used by other scripts to obtain the path to the perl executable they should use. On Windows, setup.bat sets up the PERLPATH env var to the perl included with Greenstone when working with binaries. The same is done for Linux for symmetry, although perl is not included with GS in a linux GS binary at present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bat

    r23665 r24363  
    3939
    4040if "!GS_CP_SET!" == "yes" goto Success
    41 set PATH=!GSDLHOME!\bin\windows\perl\bin;!GSDLHOME!\bin\windows;!GSDLHOME!\bin\script;!PATH!
     41set PATH=!GSDLHOME!\bin\windows;!GSDLHOME!\bin\script;!PATH!
     42if exist "!GSDLHOME!\bin\windows\perl\bin" (
     43    set PERLPATH=!GSDLHOME!\bin\windows\perl\bin
     44    set PATH=!PERLPATH!;!GSDLHOME!\bin\windows;!GSDLHOME!\bin\script;!PATH!
     45)
     46
    4247set GS_CP_SET=yes
    4348goto Success
     
    6166
    6267if "!GS_CP_SET!" == "yes" goto Success
    63 set PATH="!GSDLHOME!\bin\windows\perl\bin";"!GSDLHOME!\bin\windows";"!GSDLHOME!\bin\script";"!PATH!"
     68set PATH=!GSDLHOME!\bin\windows;!GSDLHOME!\bin\script;!PATH!
     69if exist "!GSDLHOME!\bin\windows\perl\bin" (
     70    set PERLPATH=!GSDLHOME!\bin\windows\perl\bin
     71    set PATH=!PERLPATH!;!GSDLHOME!\bin\windows;!GSDLHOME!\bin\script;!PATH!
     72)
    6473set GS_CP_SET=yes
    6574goto Success
Note: See TracChangeset for help on using the changeset viewer.