From 8c91b5f0887dd5c12acee12c2119e389944a6ac3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 11 Dec 2012 13:40:55 -0600 Subject: Add astyle options --- astyle/beautify_source_tree | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 astyle/beautify_source_tree (limited to 'astyle/beautify_source_tree') diff --git a/astyle/beautify_source_tree b/astyle/beautify_source_tree new file mode 100644 index 0000000..b604d60 --- /dev/null +++ b/astyle/beautify_source_tree @@ -0,0 +1,24 @@ +#!/bin/bash + +if [[ $1 == "" ]]; then + echo "Please specify the source directory to beautify" + exit 1 +fi + +astyle \ +--indent=tab \ +--indent-classes \ +--indent-switches \ +--indent-cases \ +--indent-namespaces \ +--indent-labels\ \ +--indent-col1-comments \ + \ +--unpad-paren \ + \ +--style=java \ +--add-brackets \ +--break-closing-brackets \ +--keep-one-line-statements \ + \ +--recursive $1/*.c $1/*.cc $1/*.cpp $1/*.h -- cgit v1.2.1