summaryrefslogtreecommitdiff
path: root/misc/scripts/fix_style.sh
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-09-24 11:51:33 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-09-24 11:52:06 +0200
commit823c3def725bcb741dce004e2dca520558fdd092 (patch)
tree94c8313510359f6a128a09cf2a082edd7bd563d5 /misc/scripts/fix_style.sh
parent4f294b958f0ca7964297bfb7f3742e06edaaba6a (diff)
Fix copyright headers and style issues
Diffstat (limited to 'misc/scripts/fix_style.sh')
-rwxr-xr-xmisc/scripts/fix_style.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/scripts/fix_style.sh b/misc/scripts/fix_style.sh
index 7a335c21ea..19ca781535 100755
--- a/misc/scripts/fix_style.sh
+++ b/misc/scripts/fix_style.sh
@@ -41,7 +41,7 @@ if $run_clang_format; then
echo -e "Formatting ${extension} files..."
find \( -path "./.git" \
-o -path "./thirdparty" \
- -o -path "./platform/android/java/src/com" \
+ -o -path "./platform/android/java/lib/src/com/google" \
\) -prune \
-o -name "*${extension}" \
-exec clang-format -i {} \;
@@ -54,7 +54,7 @@ if $run_fix_headers; then
find \( -path "./.git" -o -path "./thirdparty" \) -prune \
-o -regex '.*\.\(c\|h\|cpp\|hpp\|cc\|hh\|cxx\|m\|mm\|java\)' \
> tmp-files
- cat tmp-files | grep -v ".git\|thirdparty\|theme_data.h\|platform/android/java/src/com\|platform/android/java/src/org/godotengine/godot/input/InputManager" > files
+ cat tmp-files | grep -v ".git\|thirdparty\|theme_data.h\|platform/android/java/lib/src/com/google\|platform/android/java/lib/src/org/godotengine/godot/input/InputManager" > files
python misc/scripts/fix_headers.py
rm -f tmp-files files
fi