From e36ec8151f9b129fc0def7c8217e72b440c51dcb Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 11 Dec 2012 14:04:15 -0600 Subject: Fix script --- astyle/beautify_source_tree | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) mode change 100644 => 100755 astyle/beautify_source_tree diff --git a/astyle/beautify_source_tree b/astyle/beautify_source_tree old mode 100644 new mode 100755 index b604d60..0628a8e --- a/astyle/beautify_source_tree +++ b/astyle/beautify_source_tree @@ -5,20 +5,25 @@ if [[ $1 == "" ]]; then 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 +ASTYLEARGS=$( cat <