summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@devolo.de>2020-01-30 21:42:13 +0100
committerFlorian Zschocke <florian.zschocke@devolo.de>2020-01-30 21:52:23 +0100
commit187f8e486ff4b71871bb682807f8068ef6c01001 (patch)
tree986e07a0cc11f15e7cb94d76b5939a5216cc23f7
parent7180b22b2b693c71d53fa1c32a106a91133404ae (diff)
downloadgitblit-187f8e486ff4b71871bb682807f8068ef6c01001.tar.gz
gitblit-187f8e486ff4b71871bb682807f8068ef6c01001.zip
Build: Store release version information in file.
If requested, by setting a file name in the `versionInfo` property, store release version and tag in a file, for other scripts and programs to pick up.
-rw-r--r--build.xml18
1 files changed, 16 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 85d06e6b..58170265 100644
--- a/build.xml
+++ b/build.xml
@@ -847,16 +847,30 @@
<target name="tagRelease" depends="prepare" description="tag a new version and prepare for the next development cycle">
<!-- release -->
<property name="dryrun" value="false" />
- <mx:version stage="release" dryrun="${dryrun}" />
+ <mx:version stage="release" dryrun="${dryrun}" />
<property name="project.tag" value="v${project.version}" />
<!-- commit build.moxie & releases.moxie (automatic) -->
<mx:commit showtitle="no">
- <message>Prepare ${project.version} release</message>
+ <message>Prepare ${project.version} release</message>
<tag name="${project.tag}">
<message>${project.name} ${project.version} release</message>
</tag>
</mx:commit>
+ <!-- output version information for other scripts/programs to pick up -->
+ <mx:if>
+ <and>
+ <isset property="versionInfo" />
+ <not><equals arg1="${versionInfo}" arg2="" trim="true"/></not>
+ </and>
+ <then>
+ <echo file="${basedir}/${versionInfo}">
+GB_RELEASE_VERSION=${project.version}
+GB_RELEASE_TAG=${project.tag}
+</echo>
+ </then>
+ </mx:if>
+
<!-- create the release process script -->
<mx:if>
<os family="windows" />