Blame | Letzte Änderung | Log anzeigen | RSS feed
@echo offrem *********************************************************************rem ** The Propel generator convenience script for Windows based systemsrem ** $Id$rem *********************************************************************rem This script will do the following:rem - check for PHING_COMMAND env, if found, use it.rem - if not found detect php, if found use it, otherwise err and terminaterem - check for PROPEL_GEN_HOME evn, if found use itrem - if not found error and leaveif "%OS%"=="Windows_NT" @setlocalrem %~dp0 is expanded pathname of the current script under NTset DEFAULT_PROPEL_GEN_HOME=%~dp0..goto initgoto cleanup:initif "%PROPEL_GEN_HOME%" == "" set PROPEL_GEN_HOME=%DEFAULT_PROPEL_GEN_HOME%set DEFAULT_PROPEL_GEN_HOME=if "%PHING_COMMAND%" == "" goto no_phingcommandgoto rungoto cleanup:run%PHING_COMMAND% -f "%PROPEL_GEN_HOME%\build.xml" -Dusing.propel-gen=true -Dproject.dir=%*goto cleanup:no_phingcommandREM echo ------------------------------------------------------------------------REM echo WARNING: Set environment var PHING_COMMAND to the location of your phingREM echo executable (e.g. C:\PHP\phing.bat).REM echo Proceeding with assumption that phing.bat is on PathREM echo ------------------------------------------------------------------------set PHING_COMMAND=phing.batgoto init:cleanupif "%OS%"=="Windows_NT" @endlocalREM pause