diff options
Diffstat (limited to 'uncrustify.sh')
-rwxr-xr-x | uncrustify.sh | 11 |
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 |