]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* Makefile.in (install-local): Temporarily prepend $(builddir) to
authorColin Watson <cjwatson@ubuntu.com>
Wed, 30 Jun 2010 12:36:58 +0000 (13:36 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 30 Jun 2010 12:36:58 +0000 (13:36 +0100)
PATH when running help2man and then run it on the unadorned
executable names, rather than passing $(builddir)/* paths to
help2man.  This avoids the build directory ending up in generated
manual pages.

ChangeLog
Makefile.in

index f5988e08c29b3b4c4ecc241f010a68e8c740cf6e..04a0dc0828247ef3c0ba4b0af52b82064476e6f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-06-30  Colin Watson  <cjwatson@ubuntu.com>
+
+       * Makefile.in (install-local): Temporarily prepend $(builddir) to
+       PATH when running help2man and then run it on the unadorned
+       executable names, rather than passing $(builddir)/* paths to
+       help2man.  This avoids the build directory ending up in generated
+       manual pages.
+
 2010-06-29  Colin Watson  <cjwatson@ubuntu.com>
 
        * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
index b6b8f0d43b09c165ab8a5018516da947d9a5f0fb..a4b4ed45fa14d62199bc429908d8ee034b0cec35 100644 (file)
@@ -322,26 +322,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 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man1/$$dest.1 $(builddir)/$$file; \
+         PATH="$(builddir):$$PATH" $(HELP2MAN) --section=1 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man1/$$dest.1 $$file; \
        done
        $(SHELL) $(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 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man8/$$dest.8 $(builddir)/$$file; \
+         PATH="$(builddir):$$PATH" $(HELP2MAN) --section=8 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man8/$$dest.8 $$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 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man1/$$dest.1 $(builddir)/$$file; \
+         PATH="$(builddir):$$PATH" $(HELP2MAN) --section=1 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man1/$$dest.1 $$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 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man8/$$dest.8 $(builddir)/$$file; \
+         PATH="$(builddir):$$PATH" $(HELP2MAN) --section=8 -i $(srcdir)/docs/man/$$file.h2m -o $(DESTDIR)$(mandir)/man8/$$dest.8 $$file; \
        done
        $(SHELL) $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/grub.d
        @list='$(grub-mkconfig_SCRIPTS)'; for file in $$list; do \