2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
* gencmdlist.sh: New file. * genmk.rb (PModule::rule): Generate a rule for a command list. Clean command.lst. Generate command.lst from $(COMMANDFILES). * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh. (DATA): Added $(pkgdata_DATA). (install-local): Install files in $(pkgdata_DATA).
This commit is contained in:
parent
5accc50044
commit
7b1f4b5715
6 changed files with 517 additions and 11 deletions
18
gencmdlist.sh
Normal file
18
gencmdlist.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# Copyright (C) 2005 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 command names.
|
||||
|
||||
module=$1
|
||||
|
||||
grep -v "^#" | sed -ne "/grub_register_command *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $module/;p}"
|
Loading…
Add table
Add a link
Reference in a new issue