Skip to content

Commit

Permalink
feat: ✨ add format.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonAura committed Aug 9, 2023
1 parent 5048745 commit 7cc5052
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dependency/shell/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SHELL_FOLDER=$(dirname $(readlink -f "$0"))
cd $SHELL_FOLDER
cd ../..

for i in {1..3}
do
find . -iname "*.c" \
-or -iname "*.h" \
-or -iname "*.C" \
-or -iname "*.H" \
-or -iname "*.cpp" \
-or -iname "*.hpp" \
-or -iname "*.cc" \
-or -iname "*.hh" \
-or -iname "*.c++" \
-or -iname "*.h++" \
-or -iname "*.cxx" \
-or -iname "*.hxx" \
-or -iname "*.i" \
-or -iname "*.ixx" \
-or -iname "*.ipp" \
-or -iname "*.i++" \
| xargs clang-format -i
done

pushd logic && dotnet format && popd
pushd installer && dotnet format && popd
pushd launcher && dotnet format && popd
pushd playback && dotnet format && popd

echo "Done!"

0 comments on commit 7cc5052

Please sign in to comment.