aboutsummaryrefslogtreecommitdiff
path: root/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit')
-rwxr-xr-xpre-commit8
1 files changed, 8 insertions, 0 deletions
diff --git a/pre-commit b/pre-commit
new file mode 100755
index 00000000..2fc55423
--- /dev/null
+++ b/pre-commit
@@ -0,0 +1,8 @@
1#!/bin/sh
2find src/ -name "*.c" -exec indent {} \;
3find src/ -name "*.c" -exec indent {} \;
4if test -x "`which 'dos2unix'`"
5then
6 find src/ -name "*.c" -exec dos2unix {} \;
7 find src/ -name "*.c" -exec dos2unix {} \;
8fi