Development

/tags/RELEASE_0_6_2/bin/symfony.sh

You must first sign up to be able to contribute.

root/tags/RELEASE_0_6_2/bin/symfony.sh

Revision 500, 0.7 kB (checked in by fabien, 3 years ago)

merged rovert branch changes :498 into the trunk

  • Property svn:mime-type set to text/x-sh
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1 #!/bin/sh
2 #
3 # Shell wrapper for symfony (based on Phing shell wrapper)
4 # $Id$
5 #
6 # This script will do the following:
7 # - check for PHP_COMMAND env, if found, use it.
8 #   - if not found assume php is on the path
9 # - check for SYMFONY_HOME env, if found use it
10 #   - if not look for it
11 # - check for PHP_CLASSPATH, if found use it
12 #   - if not found set it using SYMFONY_HOME/lib
13
14 if [ -z "$SYMFONY_HOME" ] ; then
15   SYMFONY_HOME="@PEAR-DIR@"
16 fi
17
18 if (test -z "$PHP_COMMAND") ; then
19   # echo "WARNING: PHP_COMMAND environment not set. (Assuming php on PATH)"
20   export PHP_COMMAND=php
21 fi
22
23 if (test -z "$PHP_CLASSPATH") ; then
24   PHP_CLASSPATH=$SYMFONY_HOME/lib
25   export PHP_CLASSPATH
26 fi
27
28 $PHP_COMMAND -d html_errors=off -qC $SYMFONY_HOME/symfony.php $*
Note: See TracBrowser for help on using the browser.