Moved the options for the QGISSTYLE tool to a separate file.

This commit is contained in:
Sebastian Dietrich 2016-01-17 00:20:43 +01:00
parent 9dd6c0a465
commit dc2282091b
2 changed files with 18 additions and 16 deletions

16
scripts/astyle.options Normal file
View File

@ -0,0 +1,16 @@
--preserve-date
--indent-preprocessor
--brackets=break
--convert-tabs
--indent=spaces=2
--indent-classes
--indent-labels
--indent-namespaces
--indent-switches
--one-line=keep-blocks
--max-instatement-indent=40
--min-conditional-indent=-1
--suffix=none
--pad=oper
--pad=paren-in
--unpad=paren

View File

@ -53,22 +53,8 @@ set -e
astyleit()
{
$ASTYLE \
--preserve-date \
--indent-preprocessor \
--brackets=break \
--convert-tabs \
--indent=spaces=2 \
--indent-classes \
--indent-labels \
--indent-namespaces \
--indent-switches \
--one-line=keep-blocks \
--max-instatement-indent=40 \
--min-conditional-indent=-1 \
--suffix=none \
--pad=oper \
--pad=paren-in \
--unpad=paren "$1"
"--options=$(dirname $0)/astyle.options" \
"$1"
scripts/unify_includes.pl "$1"
}