|
@@ -70,4 +70,28 @@
|
70
|
70
|
</jar>
|
71
|
71
|
-->
|
72
|
72
|
<target name="-post-compile" depends="build-plugins"/>
|
|
73
|
+
|
|
74
|
+ <available file="/bin/bash" property="has.bash"/>
|
|
75
|
+
|
|
76
|
+ <target name="installer" depends="installer-nobuild, installer-build"/>
|
|
77
|
+
|
|
78
|
+ <target name="installer-build" if="has.bash">
|
|
79
|
+ <exec executable="/bin/bash" dir="installer" resultproperty="installer.result">
|
|
80
|
+ <arg value="release.sh"/>
|
|
81
|
+ <arg value="this"/>
|
|
82
|
+ </exec>
|
|
83
|
+
|
|
84
|
+ <condition property="installer.success">
|
|
85
|
+ <equals arg1="${installer.result}" arg2="0" />
|
|
86
|
+ </condition>
|
|
87
|
+
|
|
88
|
+ <echo message="Installer build finished."/>
|
|
89
|
+ <echo message="Completed build files can be found in:"/>
|
|
90
|
+ <echo message=" ${installer.output.dir}"/>
|
|
91
|
+ <echo message=""/>
|
|
92
|
+ </target>
|
|
93
|
+
|
|
94
|
+ <target name="installer-nobuild" unless="has.bash">
|
|
95
|
+ <echo message="This task only works on linux"/>
|
|
96
|
+ </target>
|
73
|
97
|
</project>
|