]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Properly print version in autoconf for releases rec-4.0.0-alpha2
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 9 Mar 2016 13:53:41 +0000 (14:53 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 9 Mar 2016 13:53:41 +0000 (14:53 +0100)
build-aux/gen-version

index 099f08555271cb723570370725bb82da90a0cdca..463403b2bd75502dfc20f2a6c4a9ac47d401c815 100755 (executable)
@@ -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