diff --git a/set-version.sh b/set-version.sh new file mode 100755 index 0000000000..7d4a54ef79 --- /dev/null +++ b/set-version.sh @@ -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 diff --git a/topics/templates/document-attributes-community.adoc b/topics/templates/document-attributes-community.adoc index b686b12bce..c7f2169bb6 100644 --- a/topics/templates/document-attributes-community.adoc +++ b/topics/templates/document-attributes-community.adoc @@ -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