Development

/tags/RELEASE_0_6_2/bin/symfony.bat

You must first sign up to be able to contribute.

root/tags/RELEASE_0_6_2/bin/symfony.bat

Revision 500, 1.8 kB (checked in by fabien, 2 years ago)

merged rovert branch changes :498 into the trunk

  • Property svn-mine-type set to text/plain
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 @echo off
2
3 rem *********************************************************************
4 rem ** the symfony build script for Windows based systems (based on phing.bat)
5 rem ** $Id$
6 rem *********************************************************************
7
8 rem This script will do the following:
9 rem - check for PHP_COMMAND env, if found, use it.
10 rem   - if not found detect php, if found use it, otherwise err and terminate
11 rem - check for SYMFONY_HOME evn, if found use it
12 rem   - if not found error and leave
13 rem - check for PHP_CLASSPATH, if found use it
14 rem   - if not found set it using SYMFONY_HOME/lib
15
16 if "%OS%"=="Windows_NT" @setlocal
17
18 rem %~dp0 is expanded pathname of the current script under NT
19 set DEFAULT_SYMFONY_HOME=%~dp0..
20
21 goto init
22 goto cleanup
23
24 :init
25
26 if "%SYMFONY_HOME%" == "" set SYMFONY_HOME=%DEFAULT_SYMFONY_HOME%
27 set DEFAULT_SYMFONY_HOME=
28
29 if "%PHP_COMMAND%" == "" goto no_phpcommand
30 if "%PHP_CLASSPATH%" == "" goto set_classpath
31
32 goto run
33 goto cleanup
34
35 :run
36 IF EXIST "@PEAR-DIR@" (
37   %PHP_COMMAND% -d html_errors=off -qC "@PEAR-DIR@\symfony.php" %1 %2 %3 %4 %5 %6 %7 %8 %9
38 ) ELSE (
39   %PHP_COMMAND% -d html_errors=off -qC "%SYMFONY_HOME%\bin\symfony.php" %1 %2 %3 %4 %5 %6 %7 %8 %9
40 )
41 goto cleanup
42
43 :no_phpcommand
44 REM echo ------------------------------------------------------------------------
45 REM echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe
46 REM echo          executable (e.g. C:\PHP\php.exe).  (Assuming php.exe on Path)
47 REM echo ------------------------------------------------------------------------
48 set PHP_COMMAND=php.exe
49 goto init
50
51 :err_home
52 echo ERROR: Environment var SYMFONY_HOME not set. Please point this
53 echo variable to your local symfony installation!
54 goto cleanup
55
56 :set_classpath
57 set PHP_CLASSPATH=%SYMFONY_HOME%\lib
58 goto init
59
60 :cleanup
61 if "%OS%"=="Windows_NT" @endlocal
62 REM pause
Note: See TracBrowser for help on using the browser.