Changeset - r9052:e1311dd98a6a
[Not reviewed]
master
0 1 0
glx - 17 years ago 2008-04-24 23:50:40
glx@openttd.org
(svn r12882) -Fix (r12764): the check for missing header files could find more files than needed
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
projects/generate
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)