aboutsummaryrefslogtreecommitdiffstats
path: root/uncrustify.sh
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-23 12:45:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-07-23 12:45:28 +0100
commite0483657ff6cf1adc828ccce457814d61fe90a0d (patch)
tree5183e4163f40b81b3e7d5f51488d360883782154 /uncrustify.sh
parent7962087e808fb824aa3af6d41d02abc92916ba1e (diff)
downloadrspamd-e0483657ff6cf1adc828ccce457814d61fe90a0d.tar.gz
rspamd-e0483657ff6cf1adc828ccce457814d61fe90a0d.zip
Unify code style.
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