diff --git a/CHANGELOG b/CHANGELOG index 66fa8e1036..29a83cd255 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,5 @@ -v3.4.preview1 -------------- +v3.4.0-preview.1 +---------------- * preview for testing diff --git a/Installation/release.sh b/Installation/release.sh index 80bbf84b5f..7eaa396ef5 100755 --- a/Installation/release.sh +++ b/Installation/release.sh @@ -130,8 +130,12 @@ if [ ! -d "${ENTERPRISE_SRC_DIR}" ]; then exit 1 fi -if echo "${VERSION}" | grep -q -- '-'; then - echo "${VERSION} mustn't contain minuses! " +VERSION_RE='^[0-9]+.[0-9]+.[0-9]+(-((alpha|beta|milestone|preview|rc).)?[0-9]+)?$' + +if echo "${VERSION}" | egrep -q -- $VERSION_RE; then + echo "${VERSION} matches $VERSION_RE" +else + echo "${VERSION} does not match $VERSION_RE" exit 1 fi