Browse Subversion Repository
Contents of /trunk/framework/sample/Windows/unittest/src/nacl_test/httpd.bat
Parent Directory
| Revision Log
Revision 280 -
( show annotations)
( download)
( as text)
Tue Jul 10 09:41:50 2012 UTC
(11 years, 10 months ago)
by shirayanagi
File MIME type: application/x-msdos-program
File size: 569 byte(s)
バグ修正
| 1 |
@echo off |
| 2 |
|
| 3 |
SET NPORT=%1 |
| 4 |
if "x%~1" == "x" SET NPORT=5103 |
| 5 |
|
| 6 |
rem python ‚ª‚ ‚é‚©‚Ç‚¤‚© |
| 7 |
SET PYTHON=python |
| 8 |
%PYTHON% -h > NUL |
| 9 |
if errorlevel 1 ( |
| 10 |
bash -c "%PYTHON% -h" > NUL |
| 11 |
if errorlevel 1 ( |
| 12 |
goto py_err |
| 13 |
) |
| 14 |
SET CYGPYTHON=yes |
| 15 |
) |
| 16 |
|
| 17 |
@echo root:%CD% |
| 18 |
SET HTTPSERVER_NAME=LocalServer %NPORT% |
| 19 |
title %HTTPSERVER_NAME% |
| 20 |
|
| 21 |
if %CYGPYTHON%" == "yes" ( |
| 22 |
bash -c "%PYTHON% httpd.py %NPORT%" |
| 23 |
pause |
| 24 |
) else ( |
| 25 |
%PYTHON% httpd.py %NPORT% |
| 26 |
rem %PYTHON% -m SimpleHTTPServer %NPORT% |
| 27 |
) |
| 28 |
if errorlevel 1 goto error |
| 29 |
|
| 30 |
goto end |
| 31 |
|
| 32 |
:error |
| 33 |
pause |
| 34 |
exit /b 1 |
| 35 |
|
| 36 |
:end |
| 37 |
exit /b 0 |
|