shell script to invoke the source code formatter astyle

This commit is contained in:
Sebastian Held 2010-08-26 15:32:25 +02:00
parent ea7047f7e7
commit 90a65bb838

4
astyle.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
find . -type f -name \*.cpp -exec astyle --style=allman --indent=tab --indent-cases {} \;
find . -type f -name \*.h -exec astyle --style=allman --indent=tab --keep-one-line-blocks --indent-cases {} \;