Be tolerant of UNKNOWN version in gnulib-tool test dir.
authorEric Blake <ebb9@byu.net>
Wed, 4 Jun 2008 22:03:13 +0000 (16:03 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 5 Jun 2008 14:05:45 +0000 (08:05 -0600)
* top/GNUmakefile (_dummy): Warn rather than reconfigure if
git-version-gen fails to come up with a version.
Reported by Simon Josefsson.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
top/GNUmakefile

index c3f7d41..f30e733 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-05  Eric Blake  <ebb9@byu.net>
+
+       Be tolerant of UNKNOWN version in gnulib-tool test dir.
+       * top/GNUmakefile (_dummy): Warn rather than reconfigure if
+       git-version-gen fails to come up with a version.
+       Reported by Simon Josefsson.
+
 2008-06-05  Jim Meyering  <meyering@redhat.com>
            Paul Eggert  <eggert@cs.ucla.edu>
 
index 0c1bc38..062900b 100644 (file)
@@ -59,9 +59,13 @@ ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
     _curr-ver := $(shell cd $(srcdir) && ./$(_build-aux)/git-version-gen \
                    $(srcdir)/.tarball-version)
     ifneq ($(_curr-ver),$(VERSION))
-      $(info INFO: running autoreconf for new version string: $(_curr-ver))
-      _dummy := $(shell cd $(srcdir) && rm -rf autom4te.cache .version \
-        && $(_autoreconf))
+      ifeq ($(_curr-ver),UNKNOWN)
+        $(info WARNING: unable to verify if $(VERSION) is correct version)
+      else
+        $(info INFO: running autoreconf for new version string: $(_curr-ver))
+        _dummy := $(shell cd $(srcdir) && rm -rf autom4te.cache .version \
+          && $(_autoreconf))
+      endif
     endif
   endif
 endif