]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - build-aux/gen-version
Build release packages properly
[thirdparty/pdns.git] / build-aux / gen-version
index cec0e70049d17d483c2e2bb57ce27dfefd57e229..5994683faa24ba33f504572d80abd6048c363317 100755 (executable)
@@ -10,7 +10,7 @@ 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}"
+    echo "${TAG}${DIRTY}" | tee .version
     exit 0
   fi
   echo 'This is not a tag, either tag this commit or do not set $IS_RELEASE' >&2