]> Savannah Git Hosting - gnulib.git/commitdiff
git-version-gen: Allow 'snapshot' as .tarball-version contents.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2019 15:33:17 +0000 (17:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2019 15:33:17 +0000 (17:33 +0200)
* build-aux/git-version-gen: Don't map non-numeric .tarball-version
contents to the empty string.

ChangeLog
build-aux/git-version-gen

index 47575b06e8ea548b63566b2735caabfa61757816..877e275e751cb8e07891daac72cd568454b15925 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-10-13  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2019-10-12  Bruno Haible  <bruno@clisp.org>
 
        intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
index 45b5656e6f4e1eaf47574708bbfef73770627531..d855645ef0bf64d12585c16dbfa5354d4c98b230 100755 (executable)
@@ -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