Readded scripts/fix_style.sh. It seems to have disappeared at some point, have no idea. Use with care.

This commit is contained in:
jpekkila
2020-01-14 22:09:43 +02:00
parent 74cbcf390e
commit 20ab7b7c36

9
scripts/fix_style.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [[ $1 == "DO" && $2 == "IT!" ]]; then
find -name \*.h -o -name \*.cc -o -name \*.c | xargs clang-format -i -style=file
echo "It is done."
else
find -name \*.h -o -name \*.cc -o -name \*.c
echo "I'm going to try to fix the style of these files."
echo "If you're absolutely sure, give \"DO IT!\" as a parameter."
fi