diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-29 10:19:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-29 10:19:43 +0000 |
commit | cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch) | |
tree | b704e00a3af618b2cd174a7f89514eaebd82a1cf /pre-commit | |
parent | bb4fc4f4007988874f910d4de5492f9629301641 (diff) |
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'pre-commit')
-rwxr-xr-x | pre-commit | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pre-commit b/pre-commit index da86ca59c..ed2455237 100755 --- a/pre-commit +++ b/pre-commit @@ -1,6 +1,10 @@ #!/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 {} \; |