repo.or.cz
/
sm64pc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #438 from s4Ys369/revert-434-patch-1
[sm64pc.git]
/
format.sh
blob
52daaaffc4ac5605aa27cae1652d2798f6e2417e
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
.