Skip to content

Instantly share code, notes, and snippets.

@casimiroarruda
Created April 23, 2013 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casimiroarruda/5446044 to your computer and use it in GitHub Desktop.
Save casimiroarruda/5446044 to your computer and use it in GitHub Desktop.
<?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