summaryrefslogtreecommitdiff
path: root/build.ant
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-05-03 16:51:39 +0300
committerLV-426 <lv-426@taproot.org.il>2015-05-05 19:04:31 +0300
commitdc05441b446aa4cf7e6eaa941c6dd623131bdcff (patch)
tree09c541f73bf6161feb33922ff04e477f29653c84 /build.ant
parent60f8d3d0589cc7fda88d933dc132bd85df35203c (diff)
deb-pkg, build.ant: introducing 'single' and 'mux' debian package variants
Currently both share the same control script, generating a 'rhizi' named package
Diffstat (limited to 'build.ant')
-rw-r--r--build.ant26
1 files changed, 22 insertions, 4 deletions
diff --git a/build.ant b/build.ant
index 78807c58..e13b620b 100644
--- a/build.ant
+++ b/build.ant
@@ -195,13 +195,30 @@
</parallel>
</target>
- <target name="pkg-deb" depends="clean" description="package as .deb">
+ <target name="pkg-deb__mux" depends="clean" description="package as .deb">
+ <antcall target="pkg-deb__common">
+ <!-- FIXME: use rhizi-mux -->
+ <param name="pkg_name" value="rhizi" />
+ <param name="pkg_variant" value="rhizi-mux" />
+ </antcall>
+ </target>
+
+ <target name="pkg-deb__single" depends="clean" description="package as .deb">
+ <antcall target="pkg-deb__common">
+ <param name="pkg_name" value="rhizi" />
+ <param name="pkg_variant" value="rhizi-single" />
+ </antcall>
+ </target>
+
+ <target name="pkg-deb__common" depends="clean" description="package as .deb">
+
+ <fail unless="pkg_variant" />
+ <fail unless="pkg_name" />
- <property name="pkg_name" value="rhizi" />
<property name="pkg_version" value="0.1.0" />
<property name="pkg_debname" value="${pkg_name}_${pkg_version}" />
<property name="pkg_fullname" value="${pkg_name}-${pkg_version}" />
- <property name="build_dir__deb_pkg" value="${buildDir}/${pkg_fullname}" />
+ <property name="build_dir__deb_pkg" value="${buildDir}/deb-pkg__${pkg_variant}/${pkg_fullname}" />
<mkdir dir="dist" />
<mkdir dir="${build_dir__deb_pkg}" />
@@ -215,7 +232,8 @@
<generate_version_tag output="${build_dir__deb_pkg}/res/templates/fragment/" />
<copy todir="${build_dir__deb_pkg}/debian">
- <fileset dir="res/debian" />
+ <fileset dir="res/debian/pkg__rhizi-common" />
+ <fileset dir="res/debian/pkg__${pkg_variant}" />
</copy>
<delete verbose="true" includeemptydirs="true">