format.sh (358B)
1 #!/usr/bin/env bash 2 shopt -s globstar 3 if (( $# > 0 )); then 4 printf "formatting file(s) $*" 5 echo 6 clang-format -i -style=file "$@" 7 echo done. 8 exit 9 fi 10 echo formatting... 11 clang-format -i -style=file src/**/*.c # src 12 clang-format -i -style=file lib/src/*.c # libultra 13 clang-format -i -style=file enhancements/*.inc.c # enhancements 14 echo done.