Skip to content

Commit

Permalink
mk: Update prerelase versioning to conform to semver
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jan 8, 2015
1 parent 6354d60 commit 1f550b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mk/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
# The version number
CFG_RELEASE_NUM=1.0.0

# An optional number to put after the label, e.g. '2' -> '-beta2'
CFG_BETA_CYCLE=
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
# NB Make sure it starts with a dot to conform to semver pre-release
# versions (section 9)
CFG_PRERELEASE_VERSION=

CFG_FILENAME_EXTRA=4e7c5e5c

Expand All @@ -29,8 +31,8 @@ CFG_DISABLE_UNSTABLE_FEATURES=1
endif
ifeq ($(CFG_RELEASE_CHANNEL),beta)
# The beta channel is temporarily called 'alpha'
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE)
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_BETA_CYCLE)
CFG_RELEASE=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-alpha$(CFG_PRERELEASE_VERSION)
CFG_DISABLE_UNSTABLE_FEATURES=1
endif
ifeq ($(CFG_RELEASE_CHANNEL),nightly)
Expand Down

0 comments on commit 1f550b4

Please sign in to comment.