Simplify autorelease to not use release tags
[releng/builder.git] / jjb / autorelease / include-raw-autorelease-release-versions.sh
index 8369a9fa68b7f4b8fadb5ccc6da081aa6a40b5a9..bb50bec4170fb9fc897d975209ea113c60d01617 100644 (file)
 # RELEASE_TAG=Beryllium-SR1  # Example
 # RELEASE_BRANCH=stable/beryllium  # Example
 
+# Set release tag as $STREAM, when no release tag is passed
+RELEASE_TAG="${RELEASE_TAG:-${STREAM^}}"
+# Ensure that the first letter of RELEASE_TAG is uppercase.
+RELEASE_TAG="${RELEASE_TAG^}"
+
 # Directory to put git format-patches
 PATCH_DIR="$WORKSPACE/patches"