Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LxQjf-0006jE-79 for mharc-grub-devel@gnu.org; Fri, 24 Apr 2009 15:06:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxQje-0006hp-4F for grub-devel@gnu.org; Fri, 24 Apr 2009 15:06:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxQjZ-0006Xy-1L for grub-devel@gnu.org; Fri, 24 Apr 2009 15:06:53 -0400 Received: from [199.232.76.173] (port=56270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxQjY-0006Xg-QW for grub-devel@gnu.org; Fri, 24 Apr 2009 15:06:48 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2851) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LxQjY-0005Mr-Eu for grub-devel@gnu.org; Fri, 24 Apr 2009 15:06:48 -0400 Received: from c60.cesmail.net ([216.154.195.49]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxQjX-0000xc-V7 for grub-devel@gnu.org; Fri, 24 Apr 2009 15:06:48 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 24 Apr 2009 15:06:47 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id B8BA934C6A for ; Fri, 24 Apr 2009 15:08:54 -0400 (EDT) From: Pavel Roskin To: grub-devel@gnu.org Content-Type: text/plain Date: Fri, 24 Apr 2009 15:06:45 -0400 Message-Id: <1240600005.26226.16.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [PATCH] Prevent creation of empty manuals X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 19:06:54 -0000 * Makefile.in: Use the "-o" (output) option of help2man instead of shell redirection. This prevents creation of empty manuals if help2man is not working. --- Makefile.in | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index b24ee2e..9f4ac09 100644 --- a/Makefile.in +++ b/Makefile.in @@ -229,26 +229,26 @@ install-local: all if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ $(INSTALL_PROGRAM) $$dir$$file $(DESTDIR)$(bindir)/$$dest; \ - $(HELP2MAN) --section=1 $(builddir)/$$file > $(DESTDIR)$(mandir)/man1/$$dest.1; \ + $(HELP2MAN) --section=1 -o $(DESTDIR)$(mandir)/man1/$$dest.1 $(builddir)/$$file; \ done $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8 @list='$(sbin_UTILITIES)'; for file in $$list; do \ if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ $(INSTALL_PROGRAM) $$dir$$file $(DESTDIR)$(sbindir)/$$dest; \ - $(HELP2MAN) --section=8 $(builddir)/$$file > $(DESTDIR)$(mandir)/man8/$$dest.8; \ + $(HELP2MAN) --section=8 -o $(DESTDIR)$(mandir)/man8/$$dest.8 $(builddir)/$$file; \ done @list='$(bin_SCRIPTS)'; for file in $$list; do \ if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ $(INSTALL_SCRIPT) $$dir$$file $(DESTDIR)$(bindir)/$$dest; \ - $(HELP2MAN) --section=1 $(builddir)/$$file > $(DESTDIR)$(mandir)/man1/$$dest.1; \ + $(HELP2MAN) --section=1 -o $(DESTDIR)$(mandir)/man1/$$dest.1 $(builddir)/$$file; \ done @list='$(sbin_SCRIPTS)'; for file in $$list; do \ if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \ dest="`echo $$file | sed 's,.*/,,' | sed '$(transform)'`"; \ $(INSTALL_SCRIPT) $$dir$$file $(DESTDIR)$(sbindir)/$$dest; \ - $(HELP2MAN) --section=8 $(builddir)/$$file > $(DESTDIR)$(mandir)/man8/$$dest.8; \ + $(HELP2MAN) --section=8 -o $(DESTDIR)$(mandir)/man8/$$dest.8 $(builddir)/$$file; \ done $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/grub.d @list='$(grub-mkconfig_SCRIPTS)'; for file in $$list; do \ -- Regards, Pavel Roskin