From b7a6009a93a95d25c4164af08aa695ca1cec7ba7 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 9 Mar 2016 14:53:41 +0100 Subject: [PATCH] Properly print version in autoconf for releases --- build-aux/gen-version | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2