-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
74 lines (64 loc) · 3.11 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<project default="build">
<!-- APPLICATION METADATA -->
<property name="masysma.target" value="maenmpc"/>
<property name="mdpc.name" value="mdvl-maenmpc"/>
<property name="mdpc.section" value="sound"/>
<property name="mdpc.descrs"
>Ma_Sys.ma Erlang NCurses Music Player Client</property>
<property name="mdpc.arch" value="any"/>
<property name="mdpc.depends"
>erlang-base, erlang-jiffy, erlang-inets, mdvl-erlmpd,
mdvl-cecho</property>
<property name="mdpc.recommends" value="erlang-p1-sqlite3"/>
<property name="mdpc.bdep"
>rebar3, mdvl-cecho, mdvl-erlmpd, erlang-jiffy, erlang-inets,
config-package-dev, debhelper-compat (= 13)</property>
<property name="mdpc.descrl">
Experimental Audio Player
</property>
<property name="mdpc.file.install">
_build/default/rel/maenmpc /usr/share/mdvl-maenmpc
_build/default/lib/maenmpc/ebin /usr/share/mdvl-maenmpc/maenmpc/lib/maenmpc-0.1.1
src /usr/share/mdvl-maenmpc/maenmpc/lib/maenmpc-0.1.1
config/sys.config /usr/share/mdvl-maenmpc/maenmpc/releases/0.1.1
config/vm.args /usr/share/mdvl-maenmpc/maenmpc/releases/0.1.1
maenmpc /usr/bin
</property>
<!-- PART OF TPL HERE FOR USE IN BUILD -->
<property environment="env"/>
<condition property="masysma.internal.includepath.rel" value="${env.MDVL_CI_PHOENIX_ROOT}" else=".."><isset property="env.MDVL_CI_PHOENIX_ROOT"/></condition>
<property name="masysma.internal.includepath" location="${masysma.internal.includepath.rel}"/>
<target name="build"> <!-- inspired by / aligned with D5Man2 TUI build -->
<exec executable="rebar3" failonerror="true">
<arg value="release"/>
</exec>
<!-- allow us to override the symlink with the actual contents here -->
<delete dir="_build/default/rel/${masysma.target}/lib/${masysma.target}-0.1.1"
followSymlinks="false" removeNotFollowedSymlinks="true"/>
<delete file="_build/default/rel/${masysma.target}/releases/0.1.1/vm.args"
followSymlinks="false" removeNotFollowedSymlinks="true"/>
<delete file="_build/default/rel/${masysma.target}/releases/0.1.1/sys.config"
followSymlinks="false" removeNotFollowedSymlinks="true"/>
</target>
<target name="run" depends="build">
<exec executable="/bin/sh" failonerror="false">
<arg value="-ec"/>
<arg value="./_build/default/rel/${masysma.target}/bin/${masysma.target} foreground < /dev/tty > /dev/tty 2> /dev/tty"/>
</exec>
</target>
<target name="clean">
<exec executable="rebar3" failonerror="true">
<arg value="clean"/>
</exec>
</target>
<target name="dist-clean">
<delete dir="_build" followSymlinks="false"
includeemptydirs="true" removeNotFollowedSymlinks="true"/>
</target>
<target name="autoci" depends="autopackage"/>
<!-- TPL IMPORT (PARTIALLY GIVEN ABOVE) -->
<property name="masysma.internal.loadpath" value="${masysma.internal.includepath}/co-build/ant-build-template.xml"/>
<condition property="masysma.internal.load" value="file://${masysma.internal.loadpath}" else="https://raw.githubusercontent.com/m7a/co-build/master/ant-build-template.xml"><resourceexists><file file="${masysma.internal.loadpath}"/></resourceexists></condition>
<import><url url="${masysma.internal.load}"/></import>
</project>