Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Customize the logic to determine the version
The previous implementation had the problem that pre-releases always got the revision appended. Also, the logic to remove the pre-release identifier did not work with versioned pre-releases like "RC1". Fix this by completely customizing the logic to determine the version: - Releases only contain the semantic version, like "1.2.3". - Pre-releases additionally contain the pre-release version, like "1.2.3-RC1". - Commits ahead of the last release tag get the commit count and revision appended, like "1.2.3-RC1.001.sha.0123456". The implementation is more verbose than before but makes it easier to understand how the version is constructed. Signed-off-by: Martin Nonnenmacher <[email protected]>
- Loading branch information