doit
来自「HAL硬件抽象层源码」· 代码 · 共 33 行
TXT
33 行
#!/bin/sh
#
# Simple utility to repeat a command within each
# sub-directory of the build tree.
#
# Run as:
# doit command
#
# Note:
# Quote the command if it has spaces in it...
# doit "co RCS/*"
export PATH || (echo "OOPS, this isn't sh. Desperation time."; sh $0 $argv; kill $$)
#
# All of the subdirectories "do"
#
subdirs=". ./h ./h/ebsa110 ./h/sidearm ./h/ebsa285 ./h/brutus ./docs
./tools ./demo ./demo/ebsa110 ./demo/sidearm ./demo/ebsa285
./demo/brutus ./lib ./lib/ebsa110 ./lib/sidearm ./lib/ebsa285 ./lib/brutus
./ucos ./ucos/ebsa110 ./ucos/sidearm ./ucos/ebsa285 ./ucos/brutus"
#
# "Do" every subdirectory.
#
for sd in ${subdirs} ;
do
if [ -d ${sd} ]; then
echo '############' "Doing ${sd}" '############'
(cd ${sd}; $1)
fi
done
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?