D8158: KDevelop: decorate patch version string in development builds
René J.V. Bertin
noreply at phabricator.kde.org
Sun Oct 8 14:57:19 UTC 2017
rjvbb updated this revision to Diff 20478.
rjvbb added a comment.
Updated as discussed.
The full version string is now determined with a more elaborate mechanism:
1. `KDevelop_FULL_VERSION` is set to `${MAJOR}.${MINOR}.${PATCH}`. This is the string used in builds from source trees lacking the .git directory.
2. `GIT_FULL_VERSION` is set to the output of `git describe --tags`
If 2) succeeds:
3. `v${KDevelop_FULL_VERSION}` is removed from `${GIT_FULL_VERSION}`
4. if the result is different (removal succeeded), it is appended to `KDevelop_FULL_VERSION`, giving a single version "number" if this doesn't succeed, `GIT_FULL_VERSION` is appended to `KDevelop_FULL_VERSION` (in parentheses).
Steps 3&4 will generate a full version string that's either of the form `x.y.z-cnt-gSHA1` or `x.y.z` if HEAD points to a release version.
CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D8158?vs=20464&id=20478
REVISION DETAIL
https://phabricator.kde.org/D8158
AFFECTED FILES
CMakeLists.txt
app/main.cpp
cmake/modules/GetGitRevisionDescription.cmake
cmake/modules/GetGitRevisionDescription.cmake.in
kdevelop_fullversion.h.cmake
To: rjvbb, #kdevelop, brauch, kfunk
Cc: kossebau, flherne, mwolff, brauch, kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20171008/ada34968/attachment.html>
More information about the KDevelop-devel
mailing list