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

47 lines
1.7 KiB
XML
Raw Normal View History

2017-08-29 18:58:06 +00:00
<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"/>
2017-09-30 16:05:57 +00:00
<include name="CHANGELOG"/>
2017-08-29 18:58:06 +00:00
<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>
2017-08-29 19:06:07 +00:00
<echo>Generating example configuration file</echo>
<exec command="php arsse.php conf save-defaults config.defaults.php" dir="./build/arsse"/>
2017-08-29 18:58:06 +00:00
</target>
<target name="clean">
<delete dir="./build"/>
</target>
<target name="package">
2017-08-30 03:17:57 +00:00
<propertyprompt propertyName="arsse.version" defaultValue="head" promptText="Git tag to package"/> <!-- This needs to be used to actually check out a tag, etc -->
<delete> <!-- Delete code, but keep dependencies, which Composer will prune -->
<fileset dir="./build/arsse">
<exclude name="vendor/**"/>
</fileset>
</delete>
2017-08-29 18:58:06 +00:00
<phingcall target="build"/>
2017-08-30 03:17:57 +00:00
<tar destfile="./build/arsse-${arsse.version}.tar.gz" basedir="./build" compression="gzip">
<fileset dir="./build" includes="arsse"/>
</tar>
2017-08-29 18:58:06 +00:00
</target>
</project>