changeset 9052:6ca57f00ae31 draft

(svn r12882) -Fix (r12764): the check for missing header files could find more files than needed
author glx <glx@openttd.org>
date Thu, 24 Apr 2008 23:50:40 +0000
parents 79f4f261efbf
children 36e24a113ccc
files projects/generate
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/projects/generate
+++ b/projects/generate
@@ -56,7 +56,7 @@
 }
 
 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