repo.or.cz
/
freeciv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add scripting API control over unit 'stay'
[freeciv.git]
/
tests
/
check_macros.sh
blob
cdb1a17a42cf43dd094a9b48b8d0e587f36a3925
1
#!/bin/sh
2
3
files
=
`find
$1
-name "*.c" -o -name "*.cpp" -o -name "*.h" | sort`
4
5
echo
"# check for __LINE__ (should be replaced by __FC_LINE__):"
6
for
file
in
$files
;
do
7
COUNT
=
`cat
$file
| grep _LINE__ | grep -v __FC_LINE__ | wc -l`
8
if
[
"x
$COUNT
"
!=
"x0"
];
then
9
echo
$file
10
fi
11
done