Prepare for 4.7.0.Final

This commit is contained in:
stianst 2018-11-14 20:16:16 +01:00 committed by Stian Thorgersen
parent 31e22a300d
commit bbb33585c8
2 changed files with 14 additions and 4 deletions

10
set-version.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash -e
VERSION=$1
SHORT_VERSION=`echo $VERSION | awk -F '.' '{ print $1"."$2 }'`
NPM_VERSION=`echo $VERSION | sed 's/.Final//' | sed 's/.CR/-cr./' | sed 's/.Beta/-beta./' | sed 's/.Alpha/-alpha./'`
sed -i 's/:project_version: .*/:project_version: '$VERSION'/' topics/templates/document-attributes-community.adoc
sed -i 's/:project_versionMvn: .*/:project_versionMvn: '$VERSION'/' topics/templates/document-attributes-community.adoc
sed -i 's/:project_versionNpm: .*/:project_versionNpm: '$NPM_VERSION'/' topics/templates/document-attributes-community.adoc
sed -i 's/:project_versionDoc: .*/:project_versionDoc: '$SHORT_VERSION'/' topics/templates/document-attributes-community.adoc

View file

@ -2,10 +2,10 @@
:project_name_full: Keycloak
:project_community: true
:project_product: false
:project_version: 4.6.0.Final
:project_versionMvn: 4.6.0.Final
:project_versionNpm: 4.6.0-final
:project_versionDoc: 4.6
:project_version: 4.7.0.Final
:project_versionMvn: 4.7.0.Final
:project_versionNpm: 4.7.0
:project_versionDoc: 4.7
:project_images: keycloak-images
:project_doc_base_url: https://www.keycloak.org/docs/{project_versionDoc}
:project_dirref: KEYCLOAK_HOME