diff options
Diffstat (limited to 'format.sh')
| -rwxr-xr-x | format.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..d2a218f --- /dev/null +++ b/format.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "Do not use, it sucks..." +exit +# Note: As astyle seems to change the way of indenting things in detail in every release, +# it makes no sense to use this frequently, cause it would require everyone to use the +# same version of astyle, otherwise you get lots of modified files on every commit :( + +FILES=`find src/ -name \*.cpp && find src/ -name \*.h` + +# option -j would add { } to every if-statement, but not supported in <1.24 +for i in $FILES; do + astyle --style=ansi -A1 $i +done |
