Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 0e60f5c683
)
r14.1.x
r14.1.2
parent
2c8776b5d9
commit
fe2f909e5a
@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "" ]]; then
|
||||
echo "Please specify the source directory to beautify"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
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
|
@ -1,14 +0,0 @@
|
||||
--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
|
Loading…
Reference in new issue