svn commit: trunk/busybox: scripts

aldot at busybox.net aldot at busybox.net
Wed Nov 22 09:39:49 UTC 2006


Author: aldot
Date: 2006-11-22 01:39:48 -0800 (Wed, 22 Nov 2006)
New Revision: 16618

Log:
- reinstate "make checkhelp"


Modified:
   trunk/busybox/Makefile.custom
   trunk/busybox/scripts/checkhelp.awk


Changeset:
Modified: trunk/busybox/Makefile.custom
===================================================================
--- trunk/busybox/Makefile.custom	2006-11-22 02:20:09 UTC (rev 16617)
+++ trunk/busybox/Makefile.custom	2006-11-22 09:39:48 UTC (rev 16618)
@@ -42,9 +42,10 @@
 	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

Modified: trunk/busybox/scripts/checkhelp.awk
===================================================================
--- trunk/busybox/scripts/checkhelp.awk	2006-11-22 02:20:09 UTC (rev 16617)
+++ trunk/busybox/scripts/checkhelp.awk	2006-11-22 09:39:48 UTC (rev 16618)
@@ -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 @@
 	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]);
 		}




More information about the busybox-cvs mailing list