]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
build-aux/git-abi-version-gen: Fail if no version found
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 2 May 2023 08:40:53 +0000 (11:40 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 2 May 2023 12:26:59 +0000 (12:26 +0000)
build-aux/git-abi-version-gen

index bf47a766f7828f8a4b77074dd4a5b378ac882e3a..5b30b1d782794f8497585a29b4ab208bf9eec96d 100755 (executable)
@@ -29,8 +29,11 @@ if test "${VERSION:-}" != ""; then
   :
 elif test -f version; then
   VERSION="`cat version`"
-else test -e .git;
+elif test -e .git; then
   VERSION="0.0.0"
+else
+  echo "Cannot determine version number">&2
+  exit 1
 fi
 
 mangle_version $VERSION