summaryrefslogblamecommitdiffstats
path: root/format.sh
blob: d2a218fbe737eaeb2a3d49e22430eccebb4c9ce1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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