Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 79 lines (63 sloc) 2.318 kb
<?xml version="1.0" ?>
<project name="FuelPHP" default="help">
<property name="basedir" value="${project.basedir}" />
<property name="builddir" value="${basedir}/build" />
<property name="branch" value="1.1/develop" />
<property name="tag" value="v1.1" />
<property name="submodules" value="fuel/core,fuel/packages/auth,fuel/packages/email,fuel/packages/oil,fuel/packages/orm,fuel/packages/parser" />
<target name="help">
<echo message="phing clean Clean all previous builds"/>
<echo message="phing dist Build a release .zip"/>
<target name="clean">
<delete dir="${builddir}"/>
<target name="warn">
<echo message="WARNING! This will remove any modifications that are not committed." />
<input propertyName="continue" defaultValue="n" validArgs="Y,n" promptChar=":">Do you want to continue? </input>
<equals arg1="${continue}" arg2="n" />
<fail message="Abandoning build." />
<target name="prepare">
<echo msg="Making directory ./build" />
<mkdir dir="./build" />
<target name="prepare-repo">
<isset property="release-tag"/>
<propertyprompt propertyName="release-tag" defaultValue="${tag}" promptText="Tag name:" />
<exec command="git fetch" dir="." passthru="true" />
<exec command="git reset --hard HEAD" dir="." passthru="true" />
<exec command="git checkout ${release-tag}" dir="." passthru="true" />
<exec command="git submodule update --init" dir="." passthru="true" />
<!-- Build a release .zip -->
<target name="dist" depends="warn,prepare,prepare-repo">
<zip destfile="${builddir}/fuelphp-${release-tag}.zip" prefix="fuelphp-${release-tag}/">
<fileset dir="${basedir}">
<include name="**/**"/>
<exclude name="*.zip" />
<exclude name="build/**" />
<exclude name="build.xml" />
<exclude name="phpunit.xml" />
<exclude name="" />
<exclude name="" />
<exclude name="fuel/app/cache/*/**" />
<exclude name="fuel/app/logs/*/**" />
<exclude name="fuel/app/tmp/*/**" />
<exclude name=".DS_Store" />
<exclude name="**/.git/**" />
<exclude name="**/.git*" />
Jump to Line
Something went wrong with that request. Please try again.