Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 88febadd8a
Fetching contributors…

Cannot retrieve contributors at this time

executable file 52 lines (41 sloc) 1.43 kb
#!/usr/bin/env bash
if [ -z "$PROPEL_GEN_HOME" ] ; then
# try to find Propel
if [ -d /opt/propel/generator ] ; then
PROPEL_GEN_HOME=/opt/propel/generator
fi
if [ -d "${HOME}/opt/propel/generator" ] ; then
PROPEL_GEN_HOME="${HOME}/opt/propel/generator"
fi
if [ -d "/usr/local/propel/generator" ] ; then
PROPEL_GEN_HOME="/usr/local/propel/generator"
fi
if [ -d "${HOME}/usr/propel/generator" ] ; then
PROPEL_GEN_HOME="${HOME}/usr/propel/generator"
fi
## resolve links - the script name may be a link to phing's home
SOURCE="${BASH_SOURCE[0]}"
PRG="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$PRG/$SOURCE"
PRG="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
done
PRG="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
if [ -d "`dirname $PRG`" ] ; then
PROPEL_GEN_HOME="`dirname $PRG`"
fi
export PROPEL_GEN_HOME
fi
if [ -f "$PROPEL_GEN_HOME/bin/phing.php" ] ; then
export PHING_COMMAND="$PROPEL_GEN_HOME/bin/phing.php"
fi
if [ -z "$PHING_COMMAND" ] ; then
export PHING_COMMAND="phing"
fi
if [ $# = 1 ] ; then
"$PHING_COMMAND" -f "$PROPEL_GEN_HOME/build.xml" -Dusing.propel-gen=true -Dproject.dir=$saveddir $*
else
"$PHING_COMMAND" -f "$PROPEL_GEN_HOME/build.xml" -Dusing.propel-gen=true -Dproject.dir=$*
fi
Jump to Line
Something went wrong with that request. Please try again.