Changeset 24902 for main/trunk/greenstone2/gsicontrol.bat
- Timestamp:
- 2011-12-15T14:40:07+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/gsicontrol.bat
r24874 r24902 86 86 echo. 87 87 88 ::set cgibin=cgi-bin 89 ::set cgibin=cgi-bin\windows 90 set cgibin=cgi-bin\%GSDLOS% 88 :: If %PROCESSOR_ARCHITECTURE% is x86, default the architecture to 32 bits, else 64. 89 :: (Can't test for x64, since the 64 bit Win 7 here returns "AMD64" instead of "x64".) 90 :: Then, if the svn version already uses just %GSDLOS% not %GSDLOS%%GSDLARCH%, 91 :: set GSDLARCH to the empty string. Same if %PROCESSOR_ARCHITECTURE% is empty. 92 if "%PROCESSOR_ARCHITECTURE%" == "x86" (set GSDLARCH=32) else (set GSDLARCH=64) 93 if "%PROCESSOR_ARCHITECTURE%" == "" set GSDLARCH= 94 if exist "bin\windows" set GSDLARCH= 95 set cgibin=cgi-bin\%GSDLOS%%GSDLARCH% 96 ::set cgibin=cgi-bin ::set cgibin=cgi-bin\windows 91 97 92 98 if "%target%" == "web-start" goto start … … 335 341 if exist "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf" "%GSDLHOME%\bin\windows\stophttpd.exe" %GS2_APACHE_HTTPD_SIGNAL% SILENT 336 342 echo Setting config file to use port %port% 337 type "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf.in" | %_sed% "s@\*\*GSDL OS\*\*@%GSDLOS%@g" | %_sed% "s@\*\*PORT\*\*@%port%@g" | %_sed% "s@\*\*CONNECTPERMISSION\*\*@%allowfromall%@g" | %_sed% "s@\*\*HOST_IP\*\*@%hostIP%@g" | %_sed% "s@\*\*HOSTS\*\*@%hosts%@g" | %_sed% "s@\*\*COLLECTHOME\*\*@%safecollectpath%@g" | %_sed% "s@\*\*GSDLHOME\*\*@%safepath%@g" | %_sed% "s@\*\*APACHE_HOME_OS\*\*@%safepath%\/apache-httpd\/%GSDLOS%@g" > "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf"343 type "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf.in" | %_sed% "s@\*\*GSDL_OS_ARCH\*\*@%GSDLOS%%GSDLARCH%@g" | %_sed% "s@\*\*PORT\*\*@%port%@g" | %_sed% "s@\*\*CONNECTPERMISSION\*\*@%allowfromall%@g" | %_sed% "s@\*\*HOST_IP\*\*@%hostIP%@g" | %_sed% "s@\*\*HOSTS\*\*@%hosts%@g" | %_sed% "s@\*\*COLLECTHOME\*\*@%safecollectpath%@g" | %_sed% "s@\*\*GSDLHOME\*\*@%safepath%@g" | %_sed% "s@\*\*APACHE_HOME_OS\*\*@%safepath%\/apache-httpd\/%GSDLOS%@g" > "%GSDLHOME%\apache-httpd\%GSDLOS%\conf\httpd.conf" 338 344 echo Type '%0 web-start' to start the web server running on port %port% 339 345 echo Done
Note:
See TracChangeset
for help on using the changeset viewer.