aboutsummaryrefslogtreecommitdiff
path: root/pre-commit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
commitcddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch)
treeb704e00a3af618b2cd174a7f89514eaebd82a1cf /pre-commit
parentbb4fc4f4007988874f910d4de5492f9629301641 (diff)
downloadgnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.tar.gz
gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.zip
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'pre-commit')
-rwxr-xr-xpre-commit4
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 @@
1#!/bin/sh 1#!/bin/sh
2find src/ -name "*.c" -exec indent {} \; 2find src/ -name "*.c" -exec indent {} \;
3find src/ -name "*.h" -exec indent {} \; 3find src/ -name "*.h" -exec indent {} \;
4find src/ -name "*.c" -exec indent {} \;
5find src/ -name "*.h" -exec indent {} \;
6find src/ -name "*.c" -exec contrib/removetrailingwhitespace {} \;
7find src/ -name "*.h" -exec contrib/removetrailingwhitespace {} \;
4if test -x "`which 'dos2unix'`" 8if test -x "`which 'dos2unix'`"
5then 9then
6 find src/ -name "*.c" -exec dos2unix {} \; 10 find src/ -name "*.c" -exec dos2unix {} \;