forked from daylerees/colour-schemes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (43 loc) · 1.7 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
49
<project name="Dayle Rees Colour Schemes" default="build">
<!-- Refresh destination directories. -->
<target name="clean">
<delete dir="${basedir}/sublime"/>
<delete dir="${basedir}/vim"/>
<delete dir="${basedir}/preview"/>
<delete dir="${basedir}/prettyprint"/>
<delete dir="${basedir}/coda"/>
<delete dir="${basedir}/jetbrains"/>
<delete dir="${basedir}/bootstrap"/>
<delete dir="${basedir}/screenshots"/>
<delete dir="${basedir}/sublimeui"/>
<delete dir="${basedir}/xcode"/>
<delete dir="${basedir}/highlightjs"/>
<delete dir="${basedir}/emacs"/>
<delete dir="${basedir}/vscode"/>
</target>
<!-- Generate themes. -->
<target name="generate">
<exec dir="${basedir}/build" executable="php" failonerror="true">
<arg line="run.php raincolour --ansi"></arg>
</exec>
</target>
<!-- Generate screenshots. -->
<target name="screenshots">
<exec dir="${basedir}/build" executable="php" failonerror="true">
<arg line="screenshots.php"></arg>
</exec>
</target>
<!-- Fix VIM paths. -->
<target name="vim">
<mkdir dir="${basedir}/vim/colors"/>
<move todir="${basedir}/vim/colors">
<fileset dir="${basedir}/vim/" includes="*.vim" />
<fileset dir="${basedir}/vim/contrast" includes="*.vim" />
<fileset dir="${basedir}/vim/light" includes="*.vim" />
</move>
<delete dir="${basedir}/vim/contrast"/>
<delete dir="${basedir}/vim/light"/>
</target>
<!-- Execute the build process. -->
<target name="build" depends="clean, generate, vim, screenshots"/>
</project>