This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to annotated tag 2.2.0
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit b3dc133327c5e50c1b656c7da1066f46edb0dd3f
Author: Peter Palaga <[email protected]>
AuthorDate: Fri Aug 27 17:09:30 2021 +0200

    Add/fix some version scripting to the Release Guide
---
 docs/modules/ROOT/pages/contributor-guide/release-guide.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc 
b/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
index 73caccf..cf64b61 100644
--- a/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
+++ b/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
@@ -19,8 +19,8 @@ xref:latest@manual::release-guide.adoc[Camel Release guide].
 
 [source,shell]
 ----
-$ export VERSION=... # the version you are releasing, e.g. 0.1.0
-$ export NEXT_VERSION=$(echo ${VERSION} | awk -F. -v OFS=. '{$NF++;print}') # 
the next development iteration, e.g. 0.1.1-SNAPSHOT
+$ export VERSION=$(mvn help:evaluate -Dexpression=project.version -q 
-DforceStdout | sed 's|-SNAPSHOT||') # the version you are releasing, e.g. 0.1.0
+$ export NEXT_VERSION=$(echo ${VERSION} | awk -F. -v OFS=. 
'{$NF++;print}')-SNAPSHOT # the next development iteration, e.g. 0.1.1-SNAPSHOT
 $ export BRANCH=$(echo $VERSION | sed 's|.[0-9][0-9]*$|.x|') # the release 
branch, e.g. 0.1.x
 $ git fetch upstream # upstream is [email protected]:apache/camel-quarkus.git
 $ git checkout main # main is the branch from which you want to release

Reply via email to