Skip to content

Commit

Permalink
Moved the options for the QGISSTYLE tool to a separate file.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebDieBln committed Jan 16, 2016
1 parent 9dd6c0a commit dc22820
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
16 changes: 16 additions & 0 deletions 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
18 changes: 2 additions & 16 deletions scripts/astyle.sh
Expand Up @@ -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"
}
Expand Down

0 comments on commit dc22820

Please sign in to comment.