代码拉取完成,页面将自动刷新
#!/bin/sh
#
# BE CAREFUL WITH THIS!
#
# Usage:
#
# $ ./indent.sh [-u]
#
# Indent all the source files except those specifically excluded below.
# The -u tells indent.sh to undo the effects of running indent.sh (moves
# all the backup files back over the originals).
#
# Options for indent are loaded from .indent.pro in the current working
# directory.
# Files that should not be reformatted
EXCLUDE_FILES="./cgdb/src/command_lexer.c"
EXCLUDE_FILES="$EXCLUDE_FILES\|./cgdb/src/logo.c"
EXCLUDE_FILES="$EXCLUDE_FILES\|./cgdb/tokenizer/src/adalexer.c"
EXCLUDE_FILES="$EXCLUDE_FILES\|./cgdb/tokenizer/src/clexer.c"
EXCLUDE_FILES="$EXCLUDE_FILES\|./cgdb/tokenizer/src/ctest.c"
EXCLUDE_FILES="$EXCLUDE_FILES\|./tgdb/testsuite/tgdb.base/basic.c"
FILES_TO_INDENT=`find . -name '*.[hc]' | grep -v "$EXCLUDE_FILES"`
# If -u passed, revert to backup copies
if [ "$1" = "-u" ]; then
for i in $FILES_TO_INDENT; do
mv $i~ $i
done
# Otherwise, run indent
else
indent $FILES_TO_INDENT
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。