aboutsummaryrefslogtreecommitdiff
path: root/include/applets.h.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/applets.h.sh')
-rwxr-xr-xinclude/applets.h.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/applets.h.sh b/include/applets.h.sh
new file mode 100755
index 000000000..bab4e0d72
--- /dev/null
+++ b/include/applets.h.sh
@@ -0,0 +1,24 @@
1#!/bin/sh
2#
3# This script allows to check whether every applet has a separate option
4# enabling it. Run it after applets.h is generated.
5
6# CONFIG_applet names
7grep ^IF_ applets.h | grep -v IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \
8| grep -v MODPROBE_SMALL \
9| sed 's/BB_SYSCTL/SYSCTL/' \
10| sed 's/TEST1/[/' \
11| sed 's/TEST2/[[/' \
12| sort | uniq \
13>applets_APP1
14
15# command line applet names
16grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \
17| grep -v '^bash$' \
18| grep -v '^sh$' \
19| tr a-z A-Z \
20| sort | uniq \
21>applets_APP2
22
23diff -u applets_APP1 applets_APP2 >applets_APP.diff
24rm applets_APP1 applets_APP2