Created
April 23, 2013 18:20
-
-
Save casimiroarruda/5446044 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="7masters-2" default="start"> | |
<target name="start" depends="composer,update,dirs"/> | |
<target name="composer"> | |
<available file="composer.phar" property="composer.exists"/> | |
<echo msg="${composer.exists}"/> | |
<if> | |
<not> | |
<isset property="composer.exists"/> | |
</not> | |
<then> | |
<php expression="file_put_contents('composer.phar',file_get_contents('https://getcomposer.org/installer'))" /> | |
<exec command="php composer.phar"/> | |
<composer command="install"/> | |
</then> | |
</if> | |
</target> | |
<target name="update"> | |
<composer command="update"/> | |
</target> | |
<target name="dirs"> | |
<mkdir dir="application/library" /> | |
<mkdir dir="tests" /> | |
<mkdir dir="web/style" /> | |
<mkdir dir="web/script" /> | |
<mkdir dir="web/media" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment