]>
Commit | Line | Data |
---|---|---|
33c1ed4c VS |
1 | #! /bin/sh |
2 | # | |
822873a7 | 3 | # Copyright (C) 2009,2010 Free Software Foundation, Inc. |
33c1ed4c VS |
4 | # |
5 | # This script is free software; the author | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | # Read source code from stdin and detect command names. | |
15 | ||
16 | module=$1 | |
17 | ||
18 | grep -v "^#" | sed -n \ | |
19 | -e "/grub_term_register_input *( *\"/{s/.*( *\"\([^\"]*\)\".*/i\1: $module/;p;}" \ | |
33c1ed4c | 20 | -e "/grub_term_register_output *( *\"/{s/.*( *\"\([^\"]*\)\".*/o\1: $module/;p;}" \ |