indent.sh (n2n-3.0) | : | indent.sh (n2n-3.1.1) | ||
---|---|---|---|---|
skipping to change at line 16 | skipping to change at line 16 | |||
echo "Usage: scripts/indent [-i] [file...]" | echo "Usage: scripts/indent [-i] [file...]" | |||
echo " -i modify file in place with reindent results" | echo " -i modify file in place with reindent results" | |||
echo "" | echo "" | |||
echo "By default, will output a diff and exitcode if changed are needed" | echo "By default, will output a diff and exitcode if changed are needed" | |||
echo "If modifying files, no exit code or diff is output" | echo "If modifying files, no exit code or diff is output" | |||
exit 1 | exit 1 | |||
} | } | |||
[ -z "$1" ] && help | [ -z "$1" ] && help | |||
[ "$1" = "-h" ] && help | [ "$1" = "-h" ] && help | |||
[ "$1" = "--help" ] && help | ||||
INPLACE=0 | INPLACE=0 | |||
if [ "$1" = "-i" ]; then | if [ "$1" = "-i" ]; then | |||
shift | shift | |||
INPLACE=1 | INPLACE=1 | |||
fi | fi | |||
## indentOneClang() { | ## indentOneClang() { | |||
## rm -f "$1.indent" | ## rm -f "$1.indent" | |||
## clang-format "$1" >"$1.indent" | ## clang-format "$1" >"$1.indent" | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |