mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Moved the options for the QGISSTYLE tool to a separate file.
This commit is contained in:
parent
9dd6c0a465
commit
dc2282091b
16
scripts/astyle.options
Normal file
16
scripts/astyle.options
Normal 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
|
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user