repo.or.cz
/
nijm-empathy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
3.12.2
[nijm-empathy.git]
/
tools
/
check-whitespace.sh
blob
84356f20b9e3e8e3974681709d7d96edefc048bf
1
#!/bin/sh
2
3
fail
=
0
4
5
if
grep
-n
' $'
"$@"
6
then
7
echo
"^^^ The above files contain unwanted trailing spaces"
8
fail
=
1
9
fi
10
11
# TODO: enable tab checking once all Empathy switched to TP coding style
12
#if grep -n ' ' "$@"
13
#then
14
# echo "^^^ The above files contain tabs"
15
# fail=1
16
#fi
17
18
exit
$fail