patch: add support for -R. ~ +110 byte. By Pascal Bellard <pascal.bellard AT ads...
[oweals/busybox.git] / scripts / checkhelp.awk
index 85d0661a7ce8d689d35a5087e2737ef3ad3df89f..4bb4996dc599195b256ee8be6777423752a2109d 100755 (executable)
@@ -2,7 +2,7 @@
 # AWK script to check for missing help entries for config options
 #
 # Copyright (C) 2006 Bernhard Fischer
-# 
+#
 # This file is distributed under the terms and conditions of the
 # MIT/X public licenses. See http://opensource.org/licenses/mit-license.html
 # and notice http://www.gnu.org/licenses/license-list.html#X11License
                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]);
                }