summaryrefslogtreecommitdiff
path: root/include/applets.h.sh
blob: bab4e0d7214c65786b69b5a3000e387aea5d158b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# This script allows to check whether every applet has a separate option
# enabling it. Run it after applets.h is generated.

# CONFIG_applet names
grep ^IF_ applets.h | grep -v IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \
| grep -v MODPROBE_SMALL \
| sed 's/BB_SYSCTL/SYSCTL/' \
| sed 's/TEST1/[/' \
| sed 's/TEST2/[[/' \
| sort | uniq \
>applets_APP1

# command line applet names
grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \
| grep -v '^bash$' \
| grep -v '^sh$' \
| tr a-z A-Z \
| sort | uniq \
>applets_APP2

diff -u applets_APP1 applets_APP2 >applets_APP.diff
rm applets_APP1 applets_APP2