<table><tr><td style="">rjvbb updated this revision to Diff 20478.<br />rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8158" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Updated as discussed.</p>

<p>The full version string is now determined with a more elaborate mechanism:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">KDevelop_FULL_VERSION</tt> is set to <tt style="background: #ebebeb; font-size: 13px;">${MAJOR}.${MINOR}.${PATCH}</tt>. This is the string used in builds from source trees lacking the .git directory.</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">GIT_FULL_VERSION</tt> is set to the output of <tt style="background: #ebebeb; font-size: 13px;">git describe --tags</tt></li>
</ol>

<p>If 2) succeeds:</p>

<ol class="remarkup-list" start="3">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">v${KDevelop_FULL_VERSION}</tt> is removed from <tt style="background: #ebebeb; font-size: 13px;">${GIT_FULL_VERSION}</tt></li>
<li class="remarkup-list-item">if the result is different (removal succeeded), it is appended to <tt style="background: #ebebeb; font-size: 13px;">KDevelop_FULL_VERSION</tt>, giving a single version "number" if this doesn't succeed, <tt style="background: #ebebeb; font-size: 13px;">GIT_FULL_VERSION</tt> is appended to <tt style="background: #ebebeb; font-size: 13px;">KDevelop_FULL_VERSION</tt> (in parentheses).</li>
</ol>

<p>Steps 3&4 will generate a full version string that's either of the form <tt style="background: #ebebeb; font-size: 13px;">x.y.z-cnt-gSHA1</tt> or <tt style="background: #ebebeb; font-size: 13px;">x.y.z</tt> if HEAD points to a release version.</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D8158?vs=20464&id=20478" rel="noreferrer">https://phabricator.kde.org/D8158?vs=20464&id=20478</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8158" rel="noreferrer">https://phabricator.kde.org/D8158</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
app/main.cpp<br />
cmake/modules/GetGitRevisionDescription.cmake<br />
cmake/modules/GetGitRevisionDescription.cmake.in<br />
kdevelop_fullversion.h.cmake</div></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, brauch, kfunk<br /><strong>Cc: </strong>kossebau, flherne, mwolff, brauch, kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>