All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix up grub-mkimage help2man output
@ 2009-06-16 23:19 Colin Watson
  2009-06-17  6:07 ` Felix Zielcke
  0 siblings, 1 reply; 2+ messages in thread
From: Colin Watson @ 2009-06-16 23:19 UTC (permalink / raw)
  To: grub-devel

grub-mkimage's help2man output is messed up for a couple of targets;
option lines in help text need to start with two spaces for help2man to
recognise them as options rather than as flowing text. Most of GRUB gets
this right, but a few places don't.

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 2334)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2009-06-17  Colin Watson  <cjwatson@ubuntu.com>
+
+	* util/elf/grub-mkimage.c (usage): Prefix each option line with two
+	spaces, for the benefit of help2man.
+	* util/i386/efi/grub-mkimage.c (usage): Likewise.
+
 2009-06-16  Pavel Roskin  <proski@gnu.org>
 
 	* kern/i386/halt.c: Include grub/machine/init.h.
Index: util/elf/grub-mkimage.c
===================================================================
--- util/elf/grub-mkimage.c	(revision 2334)
+++ util/elf/grub-mkimage.c	(working copy)
@@ -332,14 +332,14 @@
 \n\
 Make a bootable image of GRUB.\n\
 \n\
--d, --directory=DIR     use images and modules under DIR [default=%s]\n\
--p, --prefix=DIR        set grub_prefix directory\n\
--m, --memdisk=FILE      embed FILE as a memdisk image\n\
--o, --output=FILE       output a generated image to FILE\n\
--h, --help              display this message and exit\n\
--n, --note              add NOTE segment for CHRP Open Firmware\n\
--V, --version           print version information and exit\n\
--v, --verbose           print verbose messages\n\
+  -d, --directory=DIR     use images and modules under DIR [default=%s]\n\
+  -p, --prefix=DIR        set grub_prefix directory\n\
+  -m, --memdisk=FILE      embed FILE as a memdisk image\n\
+  -o, --output=FILE       output a generated image to FILE\n\
+  -h, --help              display this message and exit\n\
+  -n, --note              add NOTE segment for CHRP Open Firmware\n\
+  -V, --version           print version information and exit\n\
+  -v, --verbose           print verbose messages\n\
 \n\
 Report bugs to <%s>.\n\
 ", GRUB_LIBDIR, PACKAGE_BUGREPORT);
Index: util/i386/efi/grub-mkimage.c
===================================================================
--- util/i386/efi/grub-mkimage.c	(revision 2334)
+++ util/i386/efi/grub-mkimage.c	(working copy)
@@ -1069,12 +1069,12 @@
 \n\
 Make a bootable image of GRUB.\n\
 \n\
--d, --directory=DIR     use images and modules under DIR [default=%s]\n\
--p, --prefix=DIR        set grub_prefix directory [default=%s]\n\
--o, --output=FILE       output a generated image to FILE\n\
--h, --help              display this message and exit\n\
--V, --version           print version information and exit\n\
--v, --verbose           print verbose messages\n\
+  -d, --directory=DIR     use images and modules under DIR [default=%s]\n\
+  -p, --prefix=DIR        set grub_prefix directory [default=%s]\n\
+  -o, --output=FILE       output a generated image to FILE\n\
+  -h, --help              display this message and exit\n\
+  -V, --version           print version information and exit\n\
+  -v, --verbose           print verbose messages\n\
 \n\
 Report bugs to <%s>.\n\
 ", GRUB_LIBDIR, DEFAULT_DIRECTORY, PACKAGE_BUGREPORT);

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix up grub-mkimage help2man output
  2009-06-16 23:19 [PATCH] Fix up grub-mkimage help2man output Colin Watson
@ 2009-06-17  6:07 ` Felix Zielcke
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Zielcke @ 2009-06-17  6:07 UTC (permalink / raw)
  To: The development of GRUB 2

Am Mittwoch, den 17.06.2009, 00:19 +0100 schrieb Colin Watson:
> 
> grub-mkimage's help2man output is messed up for a couple of targets;
> option lines in help text need to start with two spaces for help2man
> to
> recognise them as options rather than as flowing text. Most of GRUB
> gets
> this right, but a few places don't.

Thanks Colin. I just commited it.
-- 
Felix Zielcke




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-17  6:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 23:19 [PATCH] Fix up grub-mkimage help2man output Colin Watson
2009-06-17  6:07 ` Felix Zielcke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.