From 8f41f19184ce8ae3ff2f7335fe064da826b76356 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 13 Oct 2019 17:33:17 +0200 Subject: git-version-gen: Allow 'snapshot' as .tarball-version contents. * build-aux/git-version-gen: Don't map non-numeric .tarball-version contents to the empty string. --- build-aux/git-version-gen | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build-aux/git-version-gen') diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 45b5656e6f..d855645ef0 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -142,11 +142,9 @@ then v=`cat $tarball_version_file` || v= case $v in *$nl*) v= ;; # reject multi-line output - [0-9]*) ;; - *) v= ;; esac test "x$v" = x \ - && echo "$0: WARNING: $tarball_version_file is missing or damaged" 1>&2 + && echo "$0: WARNING: $tarball_version_file is damaged" 1>&2 fi if test "x$v" != x -- cgit v1.2.1