From: Pieter Lexis Date: Wed, 9 Mar 2016 13:53:41 +0000 (+0100) Subject: Properly print version in autoconf for releases X-Git-Tag: rec-4.0.0-alpha2^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7a6009a93a95d25c4164af08aa695ca1cec7ba7;p=thirdparty%2Fpdns.git Properly print version in autoconf for releases --- diff --git a/build-aux/gen-version b/build-aux/gen-version index 099f085552..463403b2bd 100755 --- a/build-aux/gen-version +++ b/build-aux/gen-version @@ -10,7 +10,8 @@ if [ "${IS_RELEASE}" = "YES" ]; then TAG="$(git describe --tags --exact-match 2> /dev/null | cut -d- -f 2-)" if [ -n "${TAG}" ]; then # We're on a tag - echo "${TAG}${DIRTY}" | tee .version + echo "${TAG}${DIRTY}" > .version + printf "${TAG}${DIRTY}" exit 0 fi echo 'This is not a tag, either tag this commit or do not set $IS_RELEASE' >&2