| OLD | NEW |
| 1 @echo off | 1 @echo off |
| 2 set lighttpd_dir=%~dp0..\third_party\lighttpd\win | 2 set lighttpd_dir=%~dp0..\third_party\lighttpd\win |
| 3 | 3 |
| 4 REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be | 4 REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be |
| 5 REM killed by taskkill. | 5 REM killed by taskkill. |
| 6 | 6 |
| 7 REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not | 7 REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not |
| 8 REM a directory using the echo hack. | 8 REM a directory using the echo hack. |
| 9 echo f | xcopy /D /Y %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.
exe | 9 echo f | xcopy /D /Y %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.
exe |
| 10 | 10 |
| 11 REM copy the cygwin dll to the lighttpd folder because otherwise it wont work. | 11 REM copy the cygwin dll to the lighttpd folder because otherwise it wont work. |
| 12 | 12 |
| 13 xcopy /D /Y %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir% | 13 xcopy /D /Y %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir% |
| 14 | 14 |
| 15 REM Make sure the cygwin mounts are set up. |
| 16 call %~dp0..\third_party\cygwin\setup_mount.bat |
| 17 |
| 15 REM Start the server, using the conf file in the slave directory. | 18 REM Start the server, using the conf file in the slave directory. |
| 16 | 19 |
| 17 :RESTART | 20 :RESTART |
| 18 echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %ligh
ttpd_dir%\lib | 21 echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %ligh
ttpd_dir%\lib |
| 19 %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib
-D | 22 %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib
-D |
| 20 goto :RESTART | 23 goto :RESTART |
| OLD | NEW |