repo.or.cz
/
empathy-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
build: remove -enumtypes rules
[empathy-mirror.git]
/
tools
/
check-whitespace.sh
blob
489322f9ca0c97931ed3aa353ffdd17ed02d9a14
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
if
grep
-n
' $'
"$@"
12
then
13
echo
"^^^ The above files contain unwanted trailing tabs"
14
fail
=
1
15
fi
16
17
# TODO: enable tab checking once all Empathy switched to TP coding style
18
#if grep -n ' ' "$@"
19
#then
20
# echo "^^^ The above files contain tabs"
21
# fail=1
22
#fi
23
24
exit
$fail