diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-22 09:39:48 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-22 09:39:48 +0000 |
commit | d6bbf99a8b174d8535c195c71d3560a0d83d95fc (patch) | |
tree | dd6136cc3f7861e6a10d3b3eeb06b46b2b5518e5 | |
parent | aad4999eea8f6795b5297cffb628fc65469c3fa4 (diff) | |
download | busybox-w32-d6bbf99a8b174d8535c195c71d3560a0d83d95fc.tar.gz busybox-w32-d6bbf99a8b174d8535c195c71d3560a0d83d95fc.tar.bz2 busybox-w32-d6bbf99a8b174d8535c195c71d3560a0d83d95fc.zip |
- reinstate "make checkhelp"
-rw-r--r-- | Makefile.custom | 7 | ||||
-rwxr-xr-x | scripts/checkhelp.awk | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.custom b/Makefile.custom index 13da38e76..ce808196a 100644 --- a/Makefile.custom +++ b/Makefile.custom | |||
@@ -42,9 +42,10 @@ check test: busybox | |||
42 | bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \ | 42 | bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \ |
43 | $(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:1=),-v) | 43 | $(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:1=),-v) |
44 | 44 | ||
45 | ### checkhelp: | 45 | .PHONY: checkhelp |
46 | ### $(Q)$(srctree)/scripts/checkhelp.awk \ | 46 | checkhelp: |
47 | ### $(wildcard $(patsubst %,%/Config.in,$(SRC_DIRS) ./)) | 47 | $(Q)$(srctree)/scripts/checkhelp.awk \ |
48 | $(patsubst %,$(srctree)/%,$(wildcard $(patsubst %,%/Config.in,$(busybox-dirs) ./))) | ||
48 | 49 | ||
49 | .PHONY: sizes | 50 | .PHONY: sizes |
50 | sizes: busybox_unstripped | 51 | sizes: busybox_unstripped |
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 | } |
29 | BEGIN { | 29 | BEGIN { |
@@ -31,8 +31,8 @@ BEGIN { | |||
31 | is_choice = 0; | 31 | is_choice = 0; |
32 | } | 32 | } |
33 | END { | 33 | END { |
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 | } |