aboutsummaryrefslogtreecommitdiff
path: root/scripts/checkhelp.awk
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-22 09:39:48 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-22 09:39:48 +0000
commit6e9a452d0bc16107c2b56f2e8f44ae2cccbab209 (patch)
treedd6136cc3f7861e6a10d3b3eeb06b46b2b5518e5 /scripts/checkhelp.awk
parentdd1eab02fe4c3a28b0c1f5792c93ac14da59eda5 (diff)
downloadbusybox-w32-6e9a452d0bc16107c2b56f2e8f44ae2cccbab209.tar.gz
busybox-w32-6e9a452d0bc16107c2b56f2e8f44ae2cccbab209.tar.bz2
busybox-w32-6e9a452d0bc16107c2b56f2e8f44ae2cccbab209.zip
- reinstate "make checkhelp"
git-svn-id: svn://busybox.net/trunk/busybox@16618 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'scripts/checkhelp.awk')
-rwxr-xr-xscripts/checkhelp.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/checkhelp.awk b/scripts/checkhelp.awk
index 608a46e58..4bb4996dc 100755
--- a/scripts/checkhelp.awk
+++ b/scripts/checkhelp.awk
@@ -20,10 +20,10 @@
20 help[pos] = 0; 20 help[pos] = 0;
21 } 21 }
22} 22}
23/^[[:space:]]*help[[:space:]]*$/ { 23/^[ \t]*help[ \t]*$/ {
24 help[pos] = 1; 24 help[pos] = 1;
25} 25}
26/^[[:space:]]*bool[[:space:]]*$/ { 26/^[ \t]*bool[ \t]*$/ {
27 help[pos] = 1; # ignore options which are not selectable 27 help[pos] = 1; # ignore options which are not selectable
28} 28}
29BEGIN { 29BEGIN {
@@ -31,8 +31,8 @@ BEGIN {
31 is_choice = 0; 31 is_choice = 0;
32} 32}
33END { 33END {
34 for (i = 0; i < pos; i++) { 34 for (i = 0; i <= pos; i++) {
35# printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]); 35# printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
36 if (help[i] == 0) { 36 if (help[i] == 0) {
37 printf("%s: No helptext for '%s'\n", file[i], conf[i]); 37 printf("%s: No helptext for '%s'\n", file[i], conf[i]);
38 } 38 }