cppcheck/runastyle
Kimmo Varis 7b58455ff5 Improve Astyle scripts to use variables.
Using variables for style and options makes it easier to edit the
scripts. Also avoids copy/paste errors when editing scripts.
2010-07-31 17:28:24 +03:00

17 lines
394 B
Bash
Executable File

#!/bin/bash
style="--style=ansi --min-conditional-indent=0"
options="--pad-header --unpad-paren"
astyle $style $options cli/*.cpp
astyle $style $options cli/*.h
astyle $style $options gui/*.cpp
astyle $style $options gui/*.h
astyle $style $options lib/*.cpp
astyle $style $options lib/*.h
astyle $style $options test/*.cpp
astyle $style $options test/*.h
astyle $style $options tools/*.cpp