Changeset 24759 for main/trunk
- Timestamp:
- 2011-10-14T19:02:19+13:00 (13 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/cgi-bin/gsdlsite.cfg.in
r23734 r24759 5 5 # points to the GSDLHOME directory 6 6 # This must be set, and must point to the top level Greenstone directory 7 # (usually gsdl or Greenstone) 8 gsdlhome **GSDLHOME** 7 # (usually gsdl or Greenstone). 8 # Put quotes around the GSDLHOME path value if it contains any spaces. 9 # It's important that Tab(s) and not any spaces are used (as a delimiter) 10 # to separate the gsdlhome property key from its value, since the value 11 # is a filepath and can therefore contain spaces of its own. 12 gsdlhome **GSDLHOME** 9 13 10 14 # this is the http address of GSDLHOME -
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.