# HG changeset patch # User Eric Blake # Date 1212616993 21600 # Node ID 5d2f07baed4c3a9ad0b405022782360a4e43e9cf # Parent e9419491977a2d898276719fe037862098be0730 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. Signed-off-by: Eric Blake diff -r e9419491977a -r 5d2f07baed4c ChangeLog --- a/ChangeLog Wed Jun 04 19:32:50 2008 +0200 +++ b/ChangeLog Wed Jun 04 16:03:13 2008 -0600 @@ -1,3 +1,10 @@ +2008-06-05 Eric Blake + + 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 Paul Eggert diff -r e9419491977a -r 5d2f07baed4c top/GNUmakefile --- a/top/GNUmakefile Wed Jun 04 19:32:50 2008 +0200 +++ b/top/GNUmakefile Wed Jun 04 16:03:13 2008 -0600 @@ -59,9 +59,13 @@ _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