(svn r12882) -Fix (r12764): the check for missing header files could find more files than needed
authorglx
Thu, 24 Apr 2008 23:50:40 +0000
changeset 10342 6f57df77abd8
parent 10340 15ad6fc1c780
child 10350 e08d68483283
(svn r12882) -Fix (r12764): the check for missing header files could find more files than needed
projects/generate
--- a/projects/generate	Thu Apr 24 23:40:42 2008 +0000
+++ b/projects/generate	Thu Apr 24 23:50:40 2008 +0000
@@ -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