aboutsummaryrefslogtreecommitdiff
path: root/pre-commit
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-15 13:31:06 +0000
committerng0 <ng0@n0.is>2019-03-15 13:31:06 +0000
commit29953dcd965d8b2a6fe2e0d9220bc0066005ffa5 (patch)
tree055b48fab19317bf373fb32986508ff68aa47e4e /pre-commit
parente28dd0836c6ebae43a5b28320e131c921f13ab6e (diff)
downloadgnunet-29953dcd965d8b2a6fe2e0d9220bc0066005ffa5.tar.gz
gnunet-29953dcd965d8b2a6fe2e0d9220bc0066005ffa5.zip
pre-commit: fix rtws location, test for dos2unix
Diffstat (limited to 'pre-commit')
-rwxr-xr-xpre-commit7
1 files changed, 3 insertions, 4 deletions
diff --git a/pre-commit b/pre-commit
index 777728a6b..46a7c2a4b 100755
--- a/pre-commit
+++ b/pre-commit
@@ -12,10 +12,9 @@ find $PATHS -name "*.c" -exec indent {} \;
12find $PATHS -name "*.h" -exec indent {} \; 12find $PATHS -name "*.h" -exec indent {} \;
13find $PATHS -name "*.c" -exec indent {} \; 13find $PATHS -name "*.c" -exec indent {} \;
14find $PATHS -name "*.h" -exec indent {} \; 14find $PATHS -name "*.h" -exec indent {} \;
15find $PATHS -name "*.c" -exec contrib/removetrailingwhitespace.py {} \; 15find $PATHS -name "*.c" -exec contrib/scripts/removetrailingwhitespace.py {} \;
16find $PATHS -name "*.h" -exec contrib/removetrailingwhitespace.py {} \; 16find $PATHS -name "*.h" -exec contrib/scripts/removetrailingwhitespace.py {} \;
17if test -x "`which 'dos2unix'`" 17if test -n "`dos2unix -V | head -n1 | awk '{print $1 $2}'`"; then
18then
19 find $PATHS -name "*.c" -exec dos2unix {} \; 18 find $PATHS -name "*.c" -exec dos2unix {} \;
20 find $PATHS -name "*.h" -exec dos2unix {} \; 19 find $PATHS -name "*.h" -exec dos2unix {} \;
21fi 20fi