Changeset 23665


Ignore:
Timestamp:
2011-02-03T17:55:45+13:00 (13 years ago)
Author:
ak19
Message:

More corrections to setup.bat to get it to work with extensions like for OpenOffice and PDFBox: these latest corrections are needed when installing Greenstone in an admin area in a path with spaces.

File:
1 edited

Legend:

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

    r23652 r23665  
    9696
    9797:End
    98 popd
    9998endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%& set GSDLOS=%GSDLOS%
    10099
    101 pushd
     100set savedir=%CD%
    102101cd "%GSDLHOME%"
    103 if exist ext (
    104     for /D %%e IN ("ext/*") do (
    105         cd "ext\%%e"
    106         if EXIST setup.bat call setup.bat
    107         cd ..\..
    108     )
     102if exist ext ( 
     103    for /D %%e IN ("ext/*") do call :addexts %%e
    109104)
    110 popd
     105cd "%savedir%"
     106set savedir=
     107goto :doneexts
    111108
     109:addexts
     110set folder=%1
     111cd "ext\%folder%"       
     112if EXIST setup.bat call setup.bat
     113cd ..\..
     114goto :eof
     115
     116:doneexts
    112117setlocal enabledelayedexpansion
    113 pushd
    114 cd "%GSDLHOME%"
    115 if exist apache-httpd (
     118
     119if exist "%GSDLHOME%\apache-httpd" (
    116120  echo +Adding in executable path for apache-httpd
    117121  set PATH=!GSDLHOME!\apache-httpd\!GSDLOS!\bin;!PATH!
     
    119123)
    120124
    121 if exist local (
    122   if exist local\setup.bat (
     125if exist "%GSDLHOME%\local" (
     126  if exist "!GSDLHOME!\local\setup.bat" (
    123127    echo.
    124     echo Running local\setup.bat
    125     cd local
     128    echo Running !GSDLHOME!\local\setup.bat
     129    cd "!GSDLHOME!\local"
    126130    call setup.bat
    127     cd ..
     131    cd "!GSDLHOME!"
    128132  )
    129133  set PATH=!GSDLHOME!\local\bin;!PATH!
    130134)
    131 popd
    132135
    133136:: test writability of GSDLHOME
    134137@call "!GSDLHOME!\bin\script\checkwritability.bat"
     138popd
    135139endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%& set GSDLOS=%GSDLOS%
Note: See TracChangeset for help on using the changeset viewer.