couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject git commit: Handle empty info files
Date Sat, 24 Nov 2012 18:27:48 GMT
Updated Branches:
  refs/heads/docs eb94e96d3 -> 620e3eaee


Handle empty info files


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/620e3eae
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/620e3eae
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/620e3eae

Branch: refs/heads/docs
Commit: 620e3eaeedefbb84c5b05f71c963fe2bcf119fbd
Parents: eb94e96
Author: Noah Slater <nslater@apache.org>
Authored: Sat Nov 24 18:27:44 2012 +0000
Committer: Noah Slater <nslater@apache.org>
Committed: Sat Nov 24 18:27:44 2012 +0000

----------------------------------------------------------------------
 share/doc/build/Makefile.am |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/620e3eae/share/doc/build/Makefile.am
----------------------------------------------------------------------
diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am
index fccbe04..4638c03 100644
--- a/share/doc/build/Makefile.am
+++ b/share/doc/build/Makefile.am
@@ -215,9 +215,13 @@ html-local:
 # @@ check AM_UPDATE_INFO_DIR=no
 install-data-local:
 	$(INSTALL) -d $(DESTDIR)$(infodir)
-	$(INSTALL_DATA) $(info_file) $(DESTDIR)$(infodir)/$(info_name);
-	if test -n "`which install-info`"; then\
-	    install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$(info_name); \
+	if test -s $(info_file); then \
+	    $(INSTALL_DATA) $(info_file) $(DESTDIR)$(infodir)/$(info_name); \
+	    if test -n "`which install-info`"; then\
+	        install-info \
+	            --info-dir=$(DESTDIR)$(infodir) \
+	            $(DESTDIR)$(infodir)/$(info_name); \
+	    fi
 	fi
 
 # @@ check AM_UPDATE_INFO_DIR=no


Mime
View raw message