aboutsummaryrefslogtreecommitdiff
path: root/pre-commit
blob: ed24552373279126a9aac1e075e0fc9d0b4fb015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
find src/ -name "*.c" -exec indent {} \;
find src/ -name "*.h" -exec indent {} \;
find src/ -name "*.c" -exec indent {} \;
find src/ -name "*.h" -exec indent {} \;
find src/ -name "*.c" -exec contrib/removetrailingwhitespace {} \;
find src/ -name "*.h" -exec contrib/removetrailingwhitespace {} \;
if test -x "`which 'dos2unix'`"
then
  find src/ -name "*.c" -exec dos2unix {} \;
  find src/ -name "*.h" -exec dos2unix {} \;
fi