diff options
author | wei <> | 2007-05-16 01:54:57 +0000 |
---|---|---|
committer | wei <> | 2007-05-16 01:54:57 +0000 |
commit | c5acb6c053ddf7428c0a56af61e26732a51685d4 (patch) | |
tree | c89d6ce111845c1571f55b2999145748b9282f40 /prado-cli.bat | |
parent | f52dd35b28701da6ca62b9d8bde059fcc9974104 (diff) |
update phing simpletest task
Diffstat (limited to 'prado-cli.bat')
-rw-r--r-- | prado-cli.bat | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/prado-cli.bat b/prado-cli.bat new file mode 100644 index 00000000..b3fe9f3e --- /dev/null +++ b/prado-cli.bat @@ -0,0 +1,39 @@ +@echo off + +rem ************************************************************* +rem ** CLI for Windows based systems (based on phing.bat) +rem ************************************************************* + +rem This script will do the following: +rem - check for PHP_COMMAND env, if found, use it. +rem - if not found detect php, if found use it, otherwise err and terminate + +if "%OS%"=="Windows_NT" @setlocal + +rem %~dp0 is expanded pathname of the current script under NT +set PRADO_DIR=%~dp0 + +goto init + +:init + +if "%PHP_COMMAND%" == "" goto no_phpcommand + +IF EXIST ".\framework\prado-cli.php" ( + %PHP_COMMAND% -d html_errors=off -d open_basedir= -q ".\framwork\prado-cli.php" %1 %2 %3 %4 %5 %6 %7 %8 %9 +) ELSE ( + %PHP_COMMAND% -d html_errors=off -d open_basedir= -q "%PRADO_DIR%\framework\prado-cli.php" %1 %2 %3 %4 %5 %6 %7 %8 %9 +) +goto cleanup + +:no_phpcommand +rem echo ------------------------------------------------------------------------ +rem echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe +rem echo executable (e.g. C:\PHP\php.exe). (assuming php.exe on PATH) +rem echo ------------------------------------------------------------------------ +set PHP_COMMAND=php.exe +goto init + +:cleanup +if "%OS%"=="Windows_NT" @endlocal +rem pause |