[icinga-checkins] icinga.org: icinga-core/master: make inden. sh a bit more flexible allowing multiple files to be passed ( Andreas Ericsson)

git at icinga.org git at icinga.org
Wed Nov 9 16:44:44 CET 2011


Module: icinga-core
Branch: master
Commit: 2f789eeddea6807d837e63775e3f37fa4c448ae2
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2f789eeddea6807d837e63775e3f37fa4c448ae2

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Sat Oct 22 14:44:58 2011 +0200

make inden.sh a bit more flexible allowing multiple files to be passed (Andreas Ericsson)

keeping indent intact, nice catchup.

---

 indent.sh |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/indent.sh b/indent.sh
index e043af3..e3603a0 100755
--- a/indent.sh
+++ b/indent.sh
@@ -1,5 +1,3 @@
 #!/bin/bash
 
-FILE=$1
-
-astyle --style=java --indent=tab --unpad-paren --pad-oper --pad-header --suffix=none --brackets=linux $FILE
+astyle --style=java --indent=tab --unpad-paren --pad-oper --pad-header --suffix=none --brackets=linux "$@"





More information about the icinga-checkins mailing list