From: Pieter Lexis Date: Wed, 3 Oct 2018 17:53:18 +0000 (+0200) Subject: pdnsbuilder: Make the version number even better X-Git-Tag: dnsdist-1.3.3~64^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7029%2Fhead;p=thirdparty%2Fpdns.git pdnsbuilder: Make the version number even better --- diff --git a/builder-support/gen-version b/builder-support/gen-version index c6819b7238..4dc3f09f86 100755 --- a/builder-support/gen-version +++ b/builder-support/gen-version @@ -38,12 +38,12 @@ if [ ! -z "$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" ]; then GIT_HASH="$(echo ${GIT_VERSION} | cut -d- -f3)" if [ -z "${GIT_VERSION}" ]; then - # We used 0.0.XXXX for master in the previous incarnation of our build pipeline. - # This would become 0.0.0.XXXX in this incarnation, which would break upgrades. - # Hence, 0.1.0.XXXX will be the version for master for now on. + # We used 0.0.XXXXgHASH for master in the previous incarnation of our build pipeline. + # This now becomes 0.0.XXXX.0.gHASH, as 0.0.0.XXXX.gHASH (which is more correct) + # would break upgrades for those running master # This _should_ be ok for forever is we stick to X.Y.Z for version numbers - LAST_TAG=0.1.0 - COMMITS_SINCE_TAG="$(git rev-list --count 12c868770afc20b6cc0da439d881105151d557dd..HEAD 2> /dev/null)" + LAST_TAG=0.0 + COMMITS_SINCE_TAG="$(git rev-list --count 12c868770afc20b6cc0da439d881105151d557dd..HEAD 2> /dev/null).0" GIT_HASH="$(git rev-parse HEAD | cut -c1-10 2> /dev/null)" fi