You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uncrustify.sh 395B

1234567891011
  1. #!/bin/sh
  2. for d in src src/libserver src/client src/libmime src/libutil src/lua src/classifiers src/tokenizers src/plugins ; do
  3. file_list=`find ${d} -maxdepth 1 -name "*.c" -or -name "*.h" -type f`
  4. for file2indent in $file_list
  5. do
  6. echo "Indenting file $file2indent"
  7. uncrustify -f "$file2indent" -c "./uncrustify.cfg" -o indentoutput.tmp
  8. mv indentoutput.tmp "$file2indent"
  9. done
  10. done