sm64pc/format.sh

15 lines
358 B
Bash
Raw Normal View History

2019-08-25 04:46:40 +00: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
clang-format -i -style=file enhancements/*.inc.c # enhancements
echo done.