projects
/
apps
/
core
/
preloaded
/
video-player.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
De-C++ where possible
[apps/core/preloaded/video-player.git]
/
src
/
check-header-guards.sh
1
#!/bin/sh
2
3
LC_ALL=C
4
export LC_ALL
5
6
test -z "$srcdir" && srcdir=.
7
stat=0
8
9
cd "$srcdir"
10
11
for x in *.h *.hh ; do
12
tag=`echo "$x" | tr 'a-z.-' 'A-Z_'`
13
lines=`grep "\<$tag\>" "$x" | wc -l`
14
if test "x$lines" != x3; then
15
echo "Ouch, header file $x does not have correct preprocessor guards"
16
stat=1
17
fi
18
done
19
20
exit $stat