Ai
1 Star 0 Fork 2

BuildOpenSource/busybox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
applets.h.sh 622 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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/' \
| 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 \
| sed 's/^SYSCTL$/BB_SYSCTL/' \
| sed 's/^\[\[$/TEST1/' \
| sed 's/^\[$/TEST2/' \
| sort | uniq \
>applets_APP2
diff -u applets_APP1 applets_APP2 >applets_APP.diff
#rm applets_APP1 applets_APP2
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/build-open-source/busybox.git
git@gitee.com:build-open-source/busybox.git
build-open-source
busybox
busybox
master

搜索帮助