ash: do not let EXIT trap to fire in `trap`
[oweals/busybox.git] / scripts / checkhelp.awk
index 85d0661a7ce8d689d35a5087e2737ef3ad3df89f..2468db2dae64ed9167c7585f0e097b3126969cdf 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/bin/awk -f
 # AWK script to check for missing help entries for config options
 #
-# Copyright (C) 2006 Bernhard Fischer
-# 
+# Copyright (C) 2006 Bernhard Reutner-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]);
                }