From dc2282091bd5b280af4c00819807df515a7168c6 Mon Sep 17 00:00:00 2001 From: Sebastian Dietrich Date: Sun, 17 Jan 2016 00:20:43 +0100 Subject: [PATCH] Moved the options for the QGISSTYLE tool to a separate file. --- scripts/astyle.options | 16 ++++++++++++++++ scripts/astyle.sh | 18 ++---------------- 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 scripts/astyle.options diff --git a/scripts/astyle.options b/scripts/astyle.options new file mode 100644 index 00000000000..1c46ce82a9c --- /dev/null +++ b/scripts/astyle.options @@ -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 diff --git a/scripts/astyle.sh b/scripts/astyle.sh index 39ff1c25098..9883eb33505 100755 --- a/scripts/astyle.sh +++ b/scripts/astyle.sh @@ -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" }