From d6bbf99a8b174d8535c195c71d3560a0d83d95fc Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 22 Nov 2006 09:39:48 +0000 Subject: - reinstate "make checkhelp" --- scripts/checkhelp.awk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/checkhelp.awk') 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 @@ 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]); } -- cgit v1.2.3