-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
48 lines (42 loc) · 1.5 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
42
43
44
45
46
47
48
<project name="futureturn" default="all">
<target name="all"
depends="docs,compile"
description="compile documents to html and rules for simulator"
/>
<target name="docs"
description="compile multimarkdown documents to html pages">
<exec executable="bash" dir="source/doc">
<arg value="-c" />
<arg value="multimarkdown -b *.md" />
</exec>
</target>
<target name="compile"
depends="deps"
description="turn rules from YAML files into javascript for client">
<exec executable="node" dir="source/compiler">
<arg value="compile.js" />
</exec>
</target>
<target name="deps" description="install required libraries">
<exec executable="npm">
<arg value="install" />
</exec>
</target>
<target name="publish"
depends="compile"
description="new version to github and simulator to public website"
>
<exec executable="git" failonerror="true">
<arg line="pull origin master" />
</exec>
<exec executable="git" failonerror="true">
<arg line="push origin master" />
</exec>
<exec executable="scp" failonerror="true">
<arg value="-r" />
<arg value="source/simulator/." />
<arg value="kapsi.fi:sites/kato.iki.fi/www/hexmap/." />
</exec>
</target>
<target name="pub" depends="publish" description="shortcut for publish" />
</project>