1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00
Arsse/build.xml
2017-08-29 14:58:06 -04:00

38 lines
1.3 KiB
XML

<project default="build">
<target name="build">
<mkdir dir="./build/arsse"/>
<copy todir="./build/arsse">
<fileset dir=".">
<include name="lib/**"/>
<include name="sql/**"/>
<include name="locale/**"/>
<include name="dist/**"/>
<include name="composer.*"/>
<include name="arsse.php"/>
<include name="bootstrap.php"/>
<include name="LICENSE"/>
<include name="README.md"/>
</fileset>
</copy>
<echo>Installing dependencies via Composer</echo>
<exec command="composer install -o --no-dev" dir="./build/arsse"/>
<delete>
<fileset dir="./build/arsse">
<include name="composer.*"/>
</fileset>
</delete>
</target>
<target name="clean">
<delete dir="./build"/>
</target>
<target name="package">
<propertyprompt propertyName="arsse.version" defaultValue="head" promptText="Git tag to package"/>
<phingcall target="clean"/>
<phingcall target="build"/>
<tar destfile="./build/arsse-${arsse.version}.tar.gz" basedir="./build" compression="gzip"/>
</target>
</project>