summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-05-12 13:02:06 +0300
committerLV-426 <lv-426@taproot.org.il>2015-05-12 14:59:06 +0300
commit45e0b1fbb0db670727484729cc01d9d55c16502e (patch)
tree18cf19c25cfcbc7ecf559fb806b50cf085847c20
parentfa6c5e676726d12d0a1a34de5a1fa249b3c356d2 (diff)
build.ant: relocate generated version.txt
-rw-r--r--build.ant14
1 files changed, 10 insertions, 4 deletions
diff --git a/build.ant b/build.ant
index 264a7765..e331e67f 100644
--- a/build.ant
+++ b/build.ant
@@ -53,11 +53,11 @@
</macrodef>
<macrodef name="generate_version_tag">
- <attribute name="output" />
+ <attribute name="outputDir" />
<sequential>
<exec dir="${basedir}"
executable="/usr/bin/git"
- output="@{output}/version.txt">
+ output="@{outputDir}/version.txt">
<arg line="describe" />
</exec>
</sequential>
@@ -108,6 +108,7 @@
<mkdir dir="${targetDeploymentDir}/fragment.d/template.d" />
<generate_version_tag output="res/template.d" />
+ <generate_version_tag outputDir="${targetDeploymentDir}/fragment.d/template.d" />
<!-- note: defaults to not overwriting, so rhizi-server.conf is safe -->
@@ -138,7 +139,12 @@
tofile="${targetDeploymentDir}/user_db.db"
failonerror="false" />
- <!-- domain specific defaults-->
+ <!-- default fragments: templates -->
+ <generate_version_tag outputdir="${deploy_target_dir}/fragment.d/template.d" />
+ <rsync src="${default_fragmentd_src_path}/template.d"
+ dst="${deploy_target_dir}/fragment.d" />
+
+ <!-- default fragments: other - [!] must reside under static/ -->
<copy file="res/etc/rhizi-server.conf.example"
tofile="res/etc/rhizi-server.conf" />
<copy todir="${targetDeploymentDir}/fragment.d/template.d"
@@ -243,7 +249,7 @@
</replaceregexp>
<!-- generate version fragment -->
- <generate_version_tag output="${build_dir__deb_pkg}/res/template.d" />
+ <generate_version_tag outputdir="${build_dir__deb_pkg}/${default_fragmentd_src_path}/template.d" />
<delete verbose="true" includeemptydirs="true">
<fileset dir="${build_dir__deb_pkg}" includes="Makefile" />