configure.in renamed to configure.ac
[amule.git] / src / utils / scripts / whitespace_fixer
blob71129487514a07bccae651e78f6215ce8c6888b8
1 #!/bin/sh -eu
3 if [ ! -f './configure.ac' ]; then
4 echo "Error: You must run this script from the source root directory!"
5 exit 1
6 fi
8 find . \( \
9 -name '.svn' -o \
10 -path './.git' -o \
11 -path './.hg' -o \
12 -path './autom4te.cache' -o \
13 -path './docs/Doxyfile' -o \
14 -name '.deps' -o \
15 -name 'Makefile' -o \
16 -name 'Makefile.in' -o \
17 -name 'ECCodes.h' -o \
18 -name 'ECCodes.java' -o \
19 -name 'ECTagTypes.h' -o \
20 -name 'ECTagTypes.java' -o \
21 -path './src/IPFilterScanner.cpp' -o \
22 -path './src/IPFilterScanner.h' -o \
23 -path './src/Parser.cpp' -o \
24 -path './src/Parser.hpp' -o \
25 -path './src/Scanner.cpp' -o \
26 -path './src/Scanner.h' -o \
27 -path './src/utils/aLinkCreator/src/alcpix.cpp' -o \
28 -path './src/utils/wxCas/src/wxcaspix.cpp' -o \
29 -path './src/utils/scripts/denoiser.rules' -o \
30 -path './src/webserver/src/php_lexer.c' -o \
31 -path './src/webserver/src/php_lexer.h' -o \
32 -path './src/webserver/src/php_parser.c' -o \
33 -path './src/webserver/src/php_parser.h' -o \
34 -path './unittests/tests/TextFileTest_dos.txt' -o \
35 -path './unittests/tests/TextFileTest_unix.txt' -o \
36 -name 'muuli_wdr.*' -o \
37 -name '*~' -o \
38 -name '*.o' -o \
39 -name '*.a' -o \
40 -name '*.wdr' -o \
41 -name '*.png' -o \
42 -name '*.gif' -o \
43 -name '*.ico' -o \
44 -name '*.gmo' -o \
45 -name '*.xpm' -o \
46 -name '*.1' \
47 \) -prune -o \
48 -type f -a \
49 -exec /bin/sh -c "file {} | grep -q text" ';' -a \
50 -print0 | \
51 xargs -0t -n 1 \
52 sed -i -e 's/[\t ]\+$//;s/ \+\t/\t/g'