summaryrefslogtreecommitdiff
path: root/build.ant
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-29 17:23:28 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-29 17:48:48 +0300
commit44c53f4c5724dd3fea3455c2e05da28f32d0c7bf (patch)
tree2b96c89589991107bb6fa06c8dd7b805813fc7db /build.ant
parent23a7ea71e2a42d4ccd7340ec14d7bfa6d7379665 (diff)
build.ant: version-tag -> generate_version_tag macro
Diffstat (limited to 'build.ant')
-rw-r--r--build.ant25
1 files changed, 15 insertions, 10 deletions
diff --git a/build.ant b/build.ant
index 6722f9fd..2daac7b3 100644
--- a/build.ant
+++ b/build.ant
@@ -35,6 +35,17 @@
</sequential>
</macrodef>
+ <macrodef name="generate_version_tag">
+ <attribute name="output" />
+ <sequential>
+ <exec dir="${basedir}"
+ executable="/usr/bin/git"
+ output="@{output}/version.txt">
+ <arg line="describe" />
+ </exec>
+ </sequential>
+ </macrodef>
+
<property name="pkg_name" value="rhizi" />
<property name="pkg_version" value="0.1.0" />
<property name="pkg_fullname" value="${pkg_name}-${pkg_version}" />
@@ -70,17 +81,8 @@
</delete>
</target>
- <target name="version-tag">
- <exec dir="${basedir}"
- executable="/usr/bin/git"
- output="res/templates/fragment/version.txt">
- <arg line="describe" />
- </exec>
-
- </target>
-
<target name="deploy-local"
- depends="deploy-local.clean,version-tag"
+ depends="deploy-local.clean"
description="locally deploy webapp">
<!-- [!] trailing '/' on rsync src targets critical -->
@@ -90,6 +92,8 @@
<property name="src_client" value="src/client" />
<property name="src_server" value="src/server" />
+ <generate_version_tag output="res/templates/fragment" />
+
<mkdir dir="${targetDeploymentDir}/static" />
<mkdir dir="${targetDeploymentDir}/templates" />
<mkdir dir="${targetDeploymentDir}/templates/fragment" />
@@ -190,6 +194,7 @@
<arg value="${build_dir__deb_pkg}" />
</exec>
+ <generate_version_tag output="${build_dir__deb_pkg}/res/templates/fragment/" />
<copy todir="${build_dir__deb_pkg}/debian">
<fileset dir="res/debian" />
</copy>