-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
41 lines (32 loc) · 1.14 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<project basedir="." default="neko">
<property name="version" value="0.0.3-alpha"/>
<property name="versionDir" value="0,0,3-alpha"/>
<target name="buildHaxelib">
<delete dir="build"/>
<mkdir dir="build/"/>
<mkdir dir="build/basis"/>
<mkdir dir="build/basis/${versionDir}"/>
<exec dir="." failonerror="true" executable="haxe">
<arg line="build.hxml" />
</exec>
<copy todir="build/basis/${versionDir}">
<fileset dir="buildtool/src"/>
</copy>
<copy file="haxelib.json" tofile="build/basis/${versionDir}/haxelib.json"/>
<copy file="build/run.n" tofile="build/basis/${versionDir}/run.n"/>
<exec dir="." failonerror="true" executable="chmod">
<arg line="755 build/basis/${versionDir}/run.n" />
</exec>
<echo file="build/basis/.current" >${version}</echo>
<zip destfile="build/basis.zip" basedir="build/basis" />
</target>
<target name="install">
<exec dir="." failonerror="false" executable="haxelib">
<arg line="remove basis" />
</exec>
<antcall target="buildHaxelib" />
<exec dir="." failonerror="true" executable="haxelib">
<arg line="local build/basis.zip" />
</exec>
</target>
</project>