2008-02-09 Robert Millan <rmh@aybabtu.com>

* configure.ac: Probe for `help2man'.
        * Makefile.in (builddir): New variable.
        (HELP2MAN): Likewise.  Set to `true' when @HELP2MAN@ doesn't provide it,
        or otherwise add a few flags/options to it.
        (install-local): For every executable utility or script that is
        installed, invoke $(HELP2MAN) to install a manpage based on --help
        output.

        * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
        that it doesn't prevent --help from working in build tree.

        * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
        with `bug-grub@gnu.org'.
        * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
        * util/update-grub.in (usage): New function.
        Implement proper argument check, with support for --help and --version
        (as well as existing -y).
This commit is contained in:
robertmh 2008-02-09 12:31:11 +00:00
parent 0d9ff7f075
commit 68807e5f37
8 changed files with 120 additions and 15 deletions

View file

@ -45,9 +45,6 @@ force_lba=
recheck=no
debug=no
# for make_system_path_relative_to_its_root()
. ${libdir}/grub/update-grub_lib
# Usage: usage
# Print the usage.
usage () {
@ -120,6 +117,9 @@ for option in "$@"; do
esac
done
# for make_system_path_relative_to_its_root()
. ${libdir}/grub/update-grub_lib
if test "x$install_device" = x; then
echo "install_device not specified." 1>&2
usage

View file

@ -49,7 +49,7 @@ Make GRUB rescue image.
grub-mkimage generates a bootable rescue image of the specified type.
Report bugs to <grub-devel@gnu.org>.
Report bugs to <bug-grub@gnu.org>.
EOF
}