pull/1/head
Timothy Pearson 12 years ago
parent 8c91b5f088
commit e36ec8151f

@ -5,20 +5,25 @@ if [[ $1 == "" ]]; then
exit 1 exit 1
fi fi
astyle \ ASTYLEARGS=$( cat <<EOF
--indent=tab \ --indent=tab \
--indent-classes \ --indent-classes \
--indent-switches \ --indent-switches \
--indent-cases \ --indent-cases \
--indent-namespaces \ --indent-namespaces \
--indent-labels\ \ --indent-labels \
--indent-col1-comments \ --indent-col1-comments \
\ \
--unpad-paren \ --unpad-paren \
\ \
--style=java \ --style=java \
--add-brackets \ --add-brackets \
--break-closing-brackets \ --break-closing-brackets \
--keep-one-line-statements \ --keep-one-line-statements
\ EOF
--recursive $1/*.c $1/*.cc $1/*.cpp $1/*.h )
astyle $ASTYLEARGS --recursive $1/*.c || true
astyle $ASTYLEARGS --recursive $1/*.cc || true
astyle $ASTYLEARGS --recursive $1/*.cpp || true
astyle $ASTYLEARGS --recursive $1/*.h || true

Loading…
Cancel
Save