]>
Commit | Line | Data |
---|---|---|
1 | Index: config/scripts/Menuconfig | |
2 | =================================================================== | |
3 | --- config/scripts/Menuconfig (revision 4820) | |
4 | +++ config/scripts/Menuconfig (working copy) | |
5 | @@ -376,6 +376,13 @@ | |
6 | function extract_help () { | |
7 | if [ -f ${HELP_FILE} ] | |
8 | then | |
9 | + # add support for "source" syntax | |
10 | + extra_help="" | |
11 | + new_extra_help=${HELP_FILE} | |
12 | + while [ -n "${new_extra_help}" ] ; do | |
13 | + new_extra_help=$(sed -n '/^[[:space:]]*source[[:space:]]/s:^[[:space:]]*source[[:space:]]*::p' ${new_extra_help}) | |
14 | + extra_help="${extra_help} ${new_extra_help}" | |
15 | + done | |
16 | #first escape regexp special characters in the argument: | |
17 | var=$(echo "$1"|sed 's/[][\/.^$*]/\\&/g') | |
18 | #now pick out the right help text: | |
19 | @@ -387,16 +394,20 @@ | |
20 | /^[^ ]/q | |
21 | s/^ // | |
22 | p | |
23 | - }" ${HELP_FILE}) | |
24 | + }" ${HELP_FILE} ${extra_help}) | |
25 | ||
26 | if [ -z "$text" ] | |
27 | then | |
28 | + echo "$1:" | |
29 | + echo | |
30 | echo "There is no help available for this kernel option." | |
31 | return 1 | |
32 | else | |
33 | echo "$text" | |
34 | fi | |
35 | else | |
36 | + echo "$1:" | |
37 | + echo | |
38 | echo "There is no help available for this kernel option." | |
39 | return 1 | |
40 | fi |