2009-01-05 16:52:02 +01:00
|
|
|
#!/bin/bash
|
2011-02-11 22:37:38 +01:00
|
|
|
ASTYLE_VERSION="Artistic Style Version 2.01"
|
|
|
|
if [ "`astyle --version 2>&1`" != "${ASTYLE_VERSION}" ]; then
|
|
|
|
echo "You should use: ${ASTYLE_VERSION}";
|
|
|
|
exit 1;
|
|
|
|
fi
|
2009-01-05 16:52:02 +01:00
|
|
|
|
2011-02-09 13:13:37 +01:00
|
|
|
style="--style=ansi --lineend=linux --min-conditional-indent=0"
|
2010-09-19 08:25:17 +02:00
|
|
|
options="--pad-header --unpad-paren --suffix=none"
|
2010-07-31 16:28:24 +02:00
|
|
|
|
|
|
|
astyle $style $options cli/*.cpp
|
|
|
|
astyle $style $options cli/*.h
|
|
|
|
astyle $style $options gui/*.cpp
|
|
|
|
astyle $style $options gui/*.h
|
2011-02-08 22:30:46 +01:00
|
|
|
astyle $style $options gui/test/*.cpp
|
|
|
|
astyle $style $options gui/test/*.h
|
2010-07-31 16:28:24 +02:00
|
|
|
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
|
2009-01-08 07:23:21 +01:00
|
|
|
|