]> sjero.net Git - wget/commitdiff
[svn] Handle the case when only a single wget.info file is generated.
authorhniksic <devnull@localhost>
Thu, 23 Oct 2003 22:52:17 +0000 (15:52 -0700)
committerhniksic <devnull@localhost>
Thu, 23 Oct 2003 22:52:17 +0000 (15:52 -0700)
doc/ChangeLog
doc/Makefile.in

index fbf77345a8fa700be6c8e8dc21371e3f657e9e30..71a46a03d59b2b6e7babe02a4f987ed86d5cbc26 100644 (file)
@@ -1,3 +1,11 @@
+2003-10-24  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * Makefile.in (install.info): Handle the case when only wget.info
+       is generated from wget.texi.  In that case, wget.info-*[0-9]
+       doesn't match anything and therefore ends up as a bogus value of
+       FILE in the loop.  Fix this by not calling INSTALL_DATA on
+       nonexistent files.
+
 2003-10-07  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * wget.texi (HTTP Options): Documented --post-file and
index 81fe3130c178e1f1361faf669449035e75be4e5d..06f22a48e898a45129135d1c40a92639b4bb9fd0 100644 (file)
@@ -112,11 +112,13 @@ install.info: wget.info
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
        -if test -f wget.info; then \
          for file in wget.info wget.info-*[0-9]; do \
-           $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file ; \
+           test -f "$$file" && \
+             $(INSTALL_DATA) "$$file" "$(DESTDIR)$(infodir)/$$file" ; \
          done; \
        else \
          for file in $(srcdir)/wget.info $(srcdir)/wget.info-*[0-9]; do \
-           $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/`basename $$file` ; \
+           test -f "$$file" && \
+             $(INSTALL_DATA) "$$file" "$(DESTDIR)$(infodir)/`basename $$file`" ; \
          done; \
        fi