Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
@echo off
2
 
3
rem *********************************************************************
4
rem ** The Propel generator convenience script for Windows based systems
5
rem ** $Id$
6
rem *********************************************************************
7
 
8
rem This script will do the following:
9
rem - check for PHING_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 PROPEL_GEN_HOME evn, if found use it
12
rem   - if not found error and leave
13
 
14
if "%OS%"=="Windows_NT" @setlocal
15
 
16
rem %~dp0 is expanded pathname of the current script under NT
17
set DEFAULT_PROPEL_GEN_HOME=%~dp0..
18
 
19
goto init
20
goto cleanup
21
 
22
:init
23
 
24
if "%PROPEL_GEN_HOME%" == "" set PROPEL_GEN_HOME=%DEFAULT_PROPEL_GEN_HOME%
25
set DEFAULT_PROPEL_GEN_HOME=
26
 
27
if "%PHING_COMMAND%" == "" goto no_phingcommand
28
 
29
goto run
30
goto cleanup
31
 
32
:run
33
%PHING_COMMAND% -f "%PROPEL_GEN_HOME%\build.xml" -Dusing.propel-gen=true -Dproject.dir=%*
34
goto cleanup
35
 
36
:no_phingcommand
37
REM echo ------------------------------------------------------------------------
38
REM echo WARNING: Set environment var PHING_COMMAND to the location of your phing
39
REM echo          executable (e.g. C:\PHP\phing.bat).
40
REM echo Proceeding with assumption that phing.bat is on Path
41
REM echo ------------------------------------------------------------------------
42
set PHING_COMMAND=phing.bat
43
goto init
44
 
45
:cleanup
46
if "%OS%"=="Windows_NT" @endlocal
47
REM pause