noinst_SCRIPTS = \
terminate.py \
pydiffer.py \
+ removetrailingwhitespace.py \
gnunet_pyexpect.py \
gnunet_janitor.py \
gnunet-chk.py
gnunet_pyexpect.py.in \
gnunet_janitor.py.in \
gnunet-chk.py.in \
+ removetrailingwhitespace.py.in \
pydiffer.py.in \
gnunet-gns-import.sh \
openvpn-tap32/tapw32/tap0901.sys \
+++ /dev/null
-#!/usr/bin/python
-
-import sys
-import re
-
-for fileName in sys.argv[1:]:
- f = open(fileName, 'r+')
- fileString = f.read()
-
- fileString = re.sub(r'[ ]+\n', r'\n', fileString)
- fileString = re.sub(r'\r', r'', fileString)
- f.seek(0)
- f.write(fileString)
- f.truncate(len(fileString))
--- /dev/null
+#!@PYTHON@
+
+import sys
+import re
+
+
+for fileName in sys.argv[1:]:
+ f = open(fileName, 'r+')
+ fileString = f.read()
+
+ fileString = re.sub(r'[ ]+\n', r'\n', fileString)
+ fileString = re.sub(r'\r', r'', fileString)
+ f.seek(0)
+ f.write(fileString)
+ f.truncate(len(fileString))
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 {} \;
-find $PATHS -name "*.h" -exec contrib/removetrailingwhitespace {} \;
+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 dos2unix {} \;