sm64coopdx/format.sh

14 lines
294 B
Bash
Raw Permalink Normal View History

2019-08-25 06:46:40 +02:00
#!/usr/bin/env bash
shopt -s globstar
if (( $# > 0 )); then
printf "formatting file(s) $*"
echo
clang-format -i -style=file "$@"
echo done.
exit
fi
echo formatting...
clang-format -i -style=file src/**/*.c # src
clang-format -i -style=file lib/src/*.c # libultra
echo done.