-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.format-all.sh
executable file
·14 lines (14 loc) · 964 Bytes
/
.format-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
find examples/code -name '**.cpp' -or -name '**.h' | xargs clang-format -style=file -i
find core -name '**.inl' -or -name '**.h' | xargs clang-format -style=file -i
find core -name '**.cpp' -or -name '*.mm' -or -name '*.c' | xargs clang-format -style=file -i
find examples -name '**.jsn' | xargs python3 tools/pmbuild_ext/stub_format.py -tabs 4 -w -i
find examples -name '**.pmfx' | xargs python3 tools/pmbuild_ext/stub_format.py -tabs 4 -w -i
find assets -name '**.jsn' | xargs python3 tools/pmbuild_ext/stub_format.py -tabs 4 -w -i
find assets -name '**.pmfx' | xargs python3 tools/pmbuild_ext/stub_format.py -tabs 4 -w -i
find tools -name '**.jsn' | xargs python3 tools/pmbuild_ext/stub_format.py -tabs 4 -w -i
find tools -name '**.pmfx' | xargs python3 tools/pmbuild_ext/stub_format.py -tabs 4 -w -i
find . -name '*.lua'| xargs python3 tools/pmbuild_ext/stub_format.py -tabs_to_spaces 4 -w -i
git add .
git commit -m "format-all"
git push