Changeset 24759 for main/trunk/greenstone2/gsicontrol.bat
- Timestamp:
- 2011-10-14T19:02:19+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/gsicontrol.bat
r24300 r24759 184 184 if not exist "%GSDLHOME%\%cgibin%\gsdlsite.cfg" goto relocate 185 185 186 FOR /F "tokens=2" %%G IN ('findstr /R ^gsdlhome "%GSDLHOME%\%cgibin%\gsdlsite.cfg"') do set gshome=%%G 186 :: In gsdlsite.cfg, the tab char (and only the tab char) NEEDS to be the 187 :: delimiter between the gsdlhome property name and its value, the path. 188 :: The tab as delimiter is necessary just for that property line, since 189 :: the path can contain spaces and we therefore can't have space as delim. 190 FOR /F "tokens=2 delims= " %%G IN ('findstr /R ^gsdlhome "%GSDLHOME%\%cgibin%\gsdlsite.cfg"') do set gshome=%%G 187 191 :: before string comparison, remove any quotes around gsdlhome value defined in config file 188 192 if not [%gshome%] == [] set gshome=%gshome:"=%
Note:
See TracChangeset
for help on using the changeset viewer.