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