run indent twice, it alternates between two 'canonical' forms, also run whitespace...
[oweals/gnunet.git] / pre-commit
1 #!/bin/sh
2 find src/ -name "*.c" -exec indent {} \;
3 find src/ -name "*.h" -exec indent {} \;
4 find src/ -name "*.c" -exec indent {} \;
5 find src/ -name "*.h" -exec indent {} \;
6 find src/ -name "*.c" -exec contrib/removetrailingwhitespace {} \;
7 find src/ -name "*.h" -exec contrib/removetrailingwhitespace {} \;
8 if test -x "`which 'dos2unix'`"
9 then
10   find src/ -name "*.c" -exec dos2unix {} \;
11   find src/ -name "*.h" -exec dos2unix {} \;
12 fi