- reinstate "make checkhelp"
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 22 Nov 2006 09:39:48 +0000 (09:39 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 22 Nov 2006 09:39:48 +0000 (09:39 -0000)
Makefile.custom
scripts/checkhelp.awk

index 13da38e76f006c4c08a136b05ed8469e53504a4f..ce808196a5f2b28785d2ce35bcbf307d964a7ab1 100644 (file)
@@ -42,9 +42,10 @@ check test: busybox
        bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \
        $(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:1=),-v)
 
-### checkhelp:
-###    $(Q)$(srctree)/scripts/checkhelp.awk \
-###            $(wildcard $(patsubst %,%/Config.in,$(SRC_DIRS) ./))
+.PHONY: checkhelp
+checkhelp:
+       $(Q)$(srctree)/scripts/checkhelp.awk \
+               $(patsubst %,$(srctree)/%,$(wildcard $(patsubst %,%/Config.in,$(busybox-dirs) ./)))
 
 .PHONY: sizes
 sizes: busybox_unstripped
index 608a46e5807923bd662c25154385be7d259df5fb..4bb4996dc599195b256ee8be6777423752a2109d 100755 (executable)
                help[pos] = 0;
        }
 }
-/^[[:space:]]*help[[:space:]]*$/ {
+/^[ \t]*help[ \t]*$/ {
        help[pos] = 1;
 }
-/^[[:space:]]*bool[[:space:]]*$/ {
+/^[ \t]*bool[ \t]*$/ {
        help[pos] = 1; # ignore options which are not selectable
 }
 BEGIN {
@@ -31,8 +31,8 @@ BEGIN {
        is_choice = 0;
 }
 END {
-       for (i = 0; i < pos; i++) {
-#      printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
+       for (i = 0; i <= pos; i++) {
+#      printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
                if (help[i] == 0) {
                        printf("%s: No helptext for '%s'\n", file[i], conf[i]);
                }