From: Aki Tuomi Date: Tue, 2 May 2023 08:40:53 +0000 (+0300) Subject: build-aux/git-abi-version-gen: Fail if no version found X-Git-Tag: 2.4.0~2774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6829c3d67fcbc20aa4bb7fb6daed0060e9f6341;p=thirdparty%2Fdovecot%2Fcore.git build-aux/git-abi-version-gen: Fail if no version found --- diff --git a/build-aux/git-abi-version-gen b/build-aux/git-abi-version-gen index bf47a766f7..5b30b1d782 100755 --- a/build-aux/git-abi-version-gen +++ b/build-aux/git-abi-version-gen @@ -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