From 12854a585bd373690c2a470c62c74dcf3263baa7 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Thu, 13 Jan 2022 18:19:14 +0100 Subject: [PATCH] build: Determine release version with simple grep To determine what the release version is to be, use a simple grep over the moxie.build file and cut off the `-SNAPSHOT` part. The moxie tag command doesn't do anything else, either. But the problem is that when using the moxie tag command on the release branch, where the version has already been set to a release version, it would create a second release version, like so: 1.9.2-1. --- build.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/build.xml b/build.xml index d15cf305..30a4f127 100644 --- a/build.xml +++ b/build.xml @@ -873,10 +873,13 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> - - - - + + + + + + Release version: ${determined_release.version} + Release tag: ${determined_release.tag} @@ -886,8 +889,8 @@ -GBLT_RELEASE_VERSION=${project.version} -GBLT_RELEASE_TAG=${project.tag} +GBLT_RELEASE_VERSION=${determined_release.version} +GBLT_RELEASE_TAG=${determined_release.tag} -- 2.39.5