Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>master
parent
1ccd5c4fa1
commit
0e60f5c683
@ -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