/build/ext/phing/bin/pear-phing.bat

http://github.com/alexgorbatchev/SyntaxHighlighter · Batch · 44 lines · 17 code · 9 blank · 18 comment · 0 complexity · 1c79514eba4a2e35386a6857e4dbf9bf MD5 · raw file

  1. @ECHO OFF
  2. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  3. :: The phing build script for Windows based systems
  4. :: $Id: pear-phing.bat 123 2006-09-14 20:19:08Z mrook $
  5. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  6. ::----------------------------------------------------------------------------------
  7. :: Please set following to PHP's CLI
  8. :: NOTE: In PHP 4.2.x the PHP-CLI used to be named php-cli.exe.
  9. :: PHP 4.3.x names it php.exe but stores it in a subdir called /cli/php.exe
  10. :: E.g. for PHP 4.2 C:\phpdev\php-4.2-Win32\php-cli.exe
  11. :: for PHP 4.3 C:\phpdev\php-4.3-Win32\cli\php.exe
  12. SET phpCli=@PHP-BIN@
  13. ::---------------------------------------------------------------------------------
  14. ::---------------------------------------------------------------------------------
  15. :: Do not modify below this line!! (Unless you know what your doing :)
  16. ::---------------------------------------------------------------------------------
  17. ::---------------------------------------------------------------------------------
  18. :: Check existence of php.exe
  19. IF EXIST "%phpCli%" (
  20. SET doNothing=
  21. ) ELSE GOTO :NoPhpCli
  22. "%phpCli%" -d html_errors=off -qC "@PEAR-DIR@\phing.php" %*
  23. GOTO :EOF
  24. ::
  25. :: php.exe not found error
  26. GOTO :PAUSE_END
  27. :NoPhpCli
  28. ECHO ** ERROR *****************************************************************
  29. ECHO * Sorry, can't find the php.exe file.
  30. ECHO * You must edit this file to point to your php.exe (CLI version!)
  31. ECHO * [Currently set to %phpCli%]
  32. ECHO **************************************************************************
  33. GOTO :PAUSE_END
  34. :PAUSE_END
  35. PAUSE