Browse Source

Fix script

pull/1/head
Timothy Pearson 10 years ago
parent
commit
e36ec8151f
  1. 39
      astyle/beautify_source_tree

39
astyle/beautify_source_tree

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