aboutsummaryrefslogtreecommitdiffstats
path: root/uncrustify.sh
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-23 12:53:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-23 12:53:32 +0100
commit602ae7a0b7e215ba2677131b8fdc70abc156b3ca (patch)
tree6388c4a5448b9dd780db3fda1be8e7a7667a5713 /uncrustify.sh
parentfe79d8c5a39f2b717f78cc3f3ef21b3cfc46500b (diff)
downloadrspamd-602ae7a0b7e215ba2677131b8fdc70abc156b3ca.tar.gz
rspamd-602ae7a0b7e215ba2677131b8fdc70abc156b3ca.zip
Add uncrustify source.
Diffstat (limited to 'uncrustify.sh')
-rwxr-xr-xuncrustify.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/uncrustify.sh b/uncrustify.sh
new file mode 100755
index 000000000..65058736c
--- /dev/null
+++ b/uncrustify.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+for d in src src/libserver src/client src/libmime src/libutil src/lua src/classifiers src/tokenizers src/plugins ; do
+ file_list=`find ${d} -maxdepth 1 -name "*.c" -or -name "*.h" -type f`
+ for file2indent in $file_list
+ do
+ echo "Indenting file $file2indent"
+ uncrustify -f "$file2indent" -c "./uncrustify.cfg" -o indentoutput.tmp
+ mv indentoutput.tmp "$file2indent"
+ done
+done