Changeset 24300

Show
Ignore:
Timestamp:
20.07.2011 20:44:20 (8 years ago)
Author:
ak19
Message:

Correction to reset-gsdlhome changes for Windows after testing on windows.

Files:
1 modified

Legend:

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

    r24297 r24300  
    184184if not exist "%GSDLHOME%\%cgibin%\gsdlsite.cfg" goto relocate 
    185185 
    186 FOR /F "tokens=2" %%G IN ('findstr /R ^gsdlhome "%cgibin%\gsdlsite.cfg"') do set gshome=%%G 
    187 if "x%gshome%" == "x%GSDLHOME%" set gshome=& goto exit 
     186FOR /F "tokens=2" %%G IN ('findstr /R ^gsdlhome "%GSDLHOME%\%cgibin%\gsdlsite.cfg"') do set gshome=%%G 
     187:: before string comparison, remove any quotes around gsdlhome value defined in config file 
     188if not [%gshome%] == [] set gshome=%gshome:"=% 
     189if "%gshome%" == "%GSDLHOME%" set gshome=& goto exit 
    188190   
    189191move "%GSDLHOME%\%cgibin%\gsdlsite.cfg" "%GSDLHOME%\%cgibin%\gsdlsite.cfg.bak"