Blame | Letzte Änderung | Log anzeigen | RSS feed
@echo offrem *************************************************************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 terminateif "%OS%"=="Windows_NT" @setlocalrem %~dp0 is expanded pathname of the current script under NTset PRADO_DIR=%~dp0goto init:initif "%PHP_COMMAND%" == "" goto no_phpcommandIF EXIST ".\prado-cli.php" (%PHP_COMMAND% -d html_errors=off -d open_basedir= -q ".\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%\prado-cli.php" %1 %2 %3 %4 %5 %6 %7 %8 %9)goto cleanup:no_phpcommandrem echo ------------------------------------------------------------------------rem echo WARNING: Set environment var PHP_COMMAND to the location of your php.exerem echo executable (e.g. C:\PHP\php.exe). (assuming php.exe on PATH)rem echo ------------------------------------------------------------------------set PHP_COMMAND=php.exegoto init:cleanupif "%OS%"=="Windows_NT" @endlocalrem pause