[icinga-checkins] icinga.org: icinga-core/test/cgis: * style: add new ident tools #1617
git at icinga.org
git at icinga.org
Sat Aug 6 21:55:41 CEST 2011
Module: icinga-core
Branch: test/cgis
Commit: 3bb0f824fef1b69cb748387961aa5da303daa2e6
URL: https://git.icinga.org/?p=icinga-core.git;a=commit;h=3bb0f824fef1b69cb748387961aa5da303daa2e6
Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date: Sat Aug 6 21:44:59 2011 +0200
* style: add new ident tools #1617
refs #1617
---
Changelog | 2 ++
ident-all.sh | 5 +++++
ident.sh | 5 +++++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Changelog b/Changelog
index d56f514..02d1ada 100644
--- a/Changelog
+++ b/Changelog
@@ -53,6 +53,8 @@ ENHANCEMENTS
* config: add check_dummy command definitions as example to commands.cfg #1719
* config: tune icinga.cfg for performance, enable_environment_macros=0, enable_embedded_perl=0 by default #1635
+* style: add new ident tools #1617
+
FIXES
* core: remove duplicated unlinks for check result files with multiple results (Ton Voon) #1615
* core: fix retain status file over an init script reload #1579
diff --git a/ident-all.sh b/ident-all.sh
new file mode 100755
index 0000000..7223a52
--- /dev/null
+++ b/ident-all.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for file in `find . -type f -name "*.[c]"`; do
+ sh indent.sh $file
+done
diff --git a/ident.sh b/ident.sh
new file mode 100755
index 0000000..e043af3
--- /dev/null
+++ b/ident.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+FILE=$1
+
+astyle --style=java --indent=tab --unpad-paren --pad-oper --pad-header --suffix=none --brackets=linux $FILE
More information about the icinga-checkins
mailing list