Skip to content

Commit f966c42

Browse files
committedJan 17, 2016
Merge pull request #2684 from SebDieBln/AstyleOptionsFile
Move the options for the QGISSTYLE tool to a separate file
2 parents ed5284f + dc22820 commit f966c42

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed
 

‎scripts/astyle.options

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--preserve-date
2+
--indent-preprocessor
3+
--brackets=break
4+
--convert-tabs
5+
--indent=spaces=2
6+
--indent-classes
7+
--indent-labels
8+
--indent-namespaces
9+
--indent-switches
10+
--one-line=keep-blocks
11+
--max-instatement-indent=40
12+
--min-conditional-indent=-1
13+
--suffix=none
14+
--pad=oper
15+
--pad=paren-in
16+
--unpad=paren

‎scripts/astyle.sh

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,8 @@ set -e
5353
astyleit()
5454
{
5555
$ASTYLE \
56-
--preserve-date \
57-
--indent-preprocessor \
58-
--brackets=break \
59-
--convert-tabs \
60-
--indent=spaces=2 \
61-
--indent-classes \
62-
--indent-labels \
63-
--indent-namespaces \
64-
--indent-switches \
65-
--one-line=keep-blocks \
66-
--max-instatement-indent=40 \
67-
--min-conditional-indent=-1 \
68-
--suffix=none \
69-
--pad=oper \
70-
--pad=paren-in \
71-
--unpad=paren "$1"
56+
"--options=$(dirname $0)/astyle.options" \
57+
"$1"
7258

7359
scripts/unify_includes.pl "$1"
7460
}

0 commit comments

Comments
 (0)