mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2025-01-31 17:12:39 +00:00
- reinstate "make checkhelp"
This commit is contained in:
parent
aad4999eea
commit
d6bbf99a8b
@ -42,9 +42,10 @@ check test: busybox
|
|||||||
bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \
|
bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \
|
||||||
$(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:1=),-v)
|
$(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:1=),-v)
|
||||||
|
|
||||||
### checkhelp:
|
.PHONY: checkhelp
|
||||||
### $(Q)$(srctree)/scripts/checkhelp.awk \
|
checkhelp:
|
||||||
### $(wildcard $(patsubst %,%/Config.in,$(SRC_DIRS) ./))
|
$(Q)$(srctree)/scripts/checkhelp.awk \
|
||||||
|
$(patsubst %,$(srctree)/%,$(wildcard $(patsubst %,%/Config.in,$(busybox-dirs) ./)))
|
||||||
|
|
||||||
.PHONY: sizes
|
.PHONY: sizes
|
||||||
sizes: busybox_unstripped
|
sizes: busybox_unstripped
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
help[pos] = 0;
|
help[pos] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/^[[:space:]]*help[[:space:]]*$/ {
|
/^[ \t]*help[ \t]*$/ {
|
||||||
help[pos] = 1;
|
help[pos] = 1;
|
||||||
}
|
}
|
||||||
/^[[:space:]]*bool[[:space:]]*$/ {
|
/^[ \t]*bool[ \t]*$/ {
|
||||||
help[pos] = 1; # ignore options which are not selectable
|
help[pos] = 1; # ignore options which are not selectable
|
||||||
}
|
}
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@ -31,8 +31,8 @@ BEGIN {
|
|||||||
is_choice = 0;
|
is_choice = 0;
|
||||||
}
|
}
|
||||||
END {
|
END {
|
||||||
for (i = 0; i < pos; i++) {
|
for (i = 0; i <= pos; i++) {
|
||||||
# printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
|
# printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
|
||||||
if (help[i] == 0) {
|
if (help[i] == 0) {
|
||||||
printf("%s: No helptext for '%s'\n", file[i], conf[i]);
|
printf("%s: No helptext for '%s'\n", file[i], conf[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user