summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-04-24 23:50:40 +0000
committerglx <glx@openttd.org>2008-04-24 23:50:40 +0000
commit6b961f7ba6a8e9b7e79a3698235e0b622f46ab8f (patch)
treeff1e3fb971c45261e9232c3ea054c1facde7e0d0 /projects
parent5e7191665222af49b42074c2c0d62b8e9fe3fd42 (diff)
downloadopenttd-6b961f7ba6a8e9b7e79a3698235e0b622f46ab8f.tar.xz
(svn r12882) -Fix (r12764): the check for missing header files could find more files than needed
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/generate2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/generate b/projects/generate
index ee036f467..37cbc9b57 100755
--- a/projects/generate
+++ b/projects/generate
@@ -56,7 +56,7 @@ safety_check() {
}
grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sort > tmp.headers.source.list
-find "$ROOT_DIR/src" -iname "*.h*" -and -not -iname "*svn*" -and -not -iname "*.hpp.sq" | sed "s@$ROOT_DIR/src/@@" | sort > tmp.headers.src
+find "$ROOT_DIR/src" \( -iname "*.h" -or -iname "*.hpp" \) -and -not -ipath "*/.svn/*" | sed "s@$ROOT_DIR/src/@@" | sort > tmp.headers.src
if [ -n "`diff tmp.headers.source.list tmp.headers.src`" ]; then
echo "The following headers are missing in source.list and not in /src/ or vice versa."
diff tmp.headers.source.list tmp.headers.src | grep '[<>]' | sort