X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=scripts%2Fformat_code.sh;h=4d3a8cc29f889d3c54823c2ea2171b4a22e0695d;hp=60ad045e2d110577d1a16399a1249e302e6c93f8;hb=1d97c0a567b80cf9fc67791669debfe3aa9c4c84;hpb=6c325f6d191739f115b2df64b7b83949e355e8d6 diff --git a/scripts/format_code.sh b/scripts/format_code.sh index 60ad045..4d3a8cc 100644 --- a/scripts/format_code.sh +++ b/scripts/format_code.sh @@ -1,6 +1,7 @@ #!/bin/sh -find ../src \( -name '*.cpp' -and -not -name 'moc_*' -or -name '*.h' -or -name '*.hpp' \) -exec astyle --style=ansi --suffix=none {} \; +find ../src \( -name '*.cpp' -and -not -name 'moc_*' -or -name '*.h' -or -name '*.hpp' \) \ + -exec astyle --style=ansi --suffix=none --brackets=linux --indent=tab {} \;