mk: Update prerelase versioning to conform to semver

This commit is contained in:
Brian Anderson 2015-01-08 15:33:31 -08:00
parent 6354d60ede
commit 1f550b47c2

View File

@ -15,8 +15,10 @@
# The version number # The version number
CFG_RELEASE_NUM=1.0.0 CFG_RELEASE_NUM=1.0.0
# An optional number to put after the label, e.g. '2' -> '-beta2' # An optional number to put after the label, e.g. '.2' -> '-beta.2'
CFG_BETA_CYCLE= # NB Make sure it starts with a dot to conform to semver pre-release
# versions (section 9)
CFG_PRERELEASE_VERSION=
CFG_FILENAME_EXTRA=4e7c5e5c CFG_FILENAME_EXTRA=4e7c5e5c
@ -29,8 +31,8 @@ CFG_DISABLE_UNSTABLE_FEATURES=1
endif endif
ifeq ($(CFG_RELEASE_CHANNEL),beta) ifeq ($(CFG_RELEASE_CHANNEL),beta)
# The beta channel is temporarily called 'alpha' # The beta channel is temporarily called 'alpha'
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE) CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE) CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
CFG_DISABLE_UNSTABLE_FEATURES=1 CFG_DISABLE_UNSTABLE_FEATURES=1
endif endif
ifeq ($(CFG_RELEASE_CHANNEL),nightly) ifeq ($(CFG_RELEASE_CHANNEL),nightly)