mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-24 04:55:11 +00:00
14 lines
294 B
Bash
14 lines
294 B
Bash
|
#!/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.
|