- Use the current tag if at a tagged commit
- Represent when not at a tagged commit during development
- Use the current release number assigned for archive downloads
- Allow for developmental (dash) and patch (period) numbering
This works as desired when the git command is available and the git repository information is present, but for the third goal, the downloaded archives have no git information. Since the download archives are only available at tagged commits, the release number set in the CMakeLists.txt file can be used and will match the tag at that commit (assuming these variables were set to the same values as the tag).
For the last goal, there are two cases, git repository information present and not present. When making tags during development, the tag name format will be releaseX.Y‑Z (note the dash). The git describe command will pick this tag name (and append the rest if beyond that tagged commit). When the git repository information is not present, the major, minor and patch release numbers set in the CMakeLists.txt file will be used. To handle developmental (dash) numbering, negative patch numbers will be used.
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)