2016-11-17 20:04:16 +05:30
|
|
|
#!/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
|
2016-12-23 19:42:27 +05:30
|
|
|
grep ^IF_ applets.h | grep -v ^IF_FEATURE_ | sed 's/IF_\([A-Z0-9._-]*\)(.*/\1/' \
|
2016-11-17 20:04:16 +05:30
|
|
|
| sort | uniq \
|
|
|
|
>applets_APP1
|
|
|
|
|
|
|
|
# command line applet names
|
|
|
|
grep ^IF_ applets.h | sed -e's/ //g' -e's/.*(\([a-z[][^,]*\),.*/\1/' \
|
2016-11-23 23:01:48 +05:30
|
|
|
| grep -v '^bash$' \
|
|
|
|
| grep -v '^sh$' \
|
2016-11-17 20:04:16 +05:30
|
|
|
| tr a-z A-Z \
|
2016-12-22 19:06:49 +05:30
|
|
|
| sed 's/^SYSCTL$/BB_SYSCTL/' \
|
|
|
|
| sed 's/^\[\[$/TEST1/' \
|
|
|
|
| sed 's/^\[$/TEST2/' \
|
2016-11-17 20:04:16 +05:30
|
|
|
| sort | uniq \
|
|
|
|
>applets_APP2
|
|
|
|
|
|
|
|
diff -u applets_APP1 applets_APP2 >applets_APP.diff
|
2016-12-22 19:06:49 +05:30
|
|
|
#rm applets_APP1 applets_APP2
|