2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
Parttool autoloading and improvements * Makefile.in (pkglib_DATA): add parttool.lst (parttool.lst): new target * genmk.rb: generate parttool-* (CLEANFILES): add #{parttool} (PARTTOOLFILES): new variable * genparttoollist.sh: new file * parttool/pcpart.c (grub_pcpart_boot): more feedback (grub_pcpart_type): likewise * commands/parttool.c (helpmsg): new variable (grub_cmd_parttool): output help if not enough arguments are supplied autoload modules (GRUB_MOD_INIT(parttool)): use helpmsg
This commit is contained in:
parent
91b72b4f42
commit
e434359358
6 changed files with 185 additions and 57 deletions
19
genparttoollist.sh
Normal file
19
genparttoollist.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
#
|
||||
# This gensymlist.sh is free software; the author
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
# Read source code from stdin and detect parttool names.
|
||||
|
||||
module=$1
|
||||
|
||||
grep -v "^#" | sed -n \
|
||||
-e "/grub_parttool_register *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $module/;p;}"
|
Loading…
Add table
Add a link
Reference in a new issue