gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: pre-commit: fix rtws locati


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: pre-commit: fix rtws location, test for dos2unix
Date: Fri, 15 Mar 2019 14:31:12 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 29953dcd9 pre-commit: fix rtws location, test for dos2unix
29953dcd9 is described below

commit 29953dcd965d8b2a6fe2e0d9220bc0066005ffa5
Author: ng0 <address@hidden>
AuthorDate: Fri Mar 15 13:31:06 2019 +0000

    pre-commit: fix rtws location, test for dos2unix
---
 pre-commit | 7 +++----
 1 file 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 {} \;
 find $PATHS -name "*.h" -exec indent {} \;
 find $PATHS -name "*.c" -exec indent {} \;
 find $PATHS -name "*.h" -exec indent {} \;
-find $PATHS -name "*.c" -exec contrib/removetrailingwhitespace.py {} \;
-find $PATHS -name "*.h" -exec contrib/removetrailingwhitespace.py {} \;
-if test -x "`which 'dos2unix'`"
-then
+find $PATHS -name "*.c" -exec contrib/scripts/removetrailingwhitespace.py {} \;
+find $PATHS -name "*.h" -exec contrib/scripts/removetrailingwhitespace.py {} \;
+if test -n "`dos2unix -V | head -n1 | awk '{print $1 $2}'`"; then
   find $PATHS -name "*.c" -exec dos2unix {} \;
   find $PATHS -name "*.h" -exec dos2unix {} \;
 fi

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]