blob: be8b92404ace8603aeb805d97a45d7eaa0584d76
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 |
7 | grep ^IF_ applets.h | grep -v IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \ |
8 | | grep -v MODPROBE_SMALL \ |
9 | | sort | uniq \ |
10 | >applets_APP1 |
11 | |
12 | # command line applet names |
13 | grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \ |
14 | | grep -v '^bash$' \ |
15 | | grep -v '^sh$' \ |
16 | | tr a-z A-Z \ |
17 | | sed 's/^SYSCTL$/BB_SYSCTL/' \ |
18 | | sed 's/^\[\[$/TEST1/' \ |
19 | | sed 's/^\[$/TEST2/' \ |
20 | | sort | uniq \ |
21 | >applets_APP2 |
22 | |
23 | diff -u applets_APP1 applets_APP2 >applets_APP.diff |
24 | #rm applets_APP1 applets_APP2 |
25 |