Changeset - r10377:1214a5a043e3
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-11-25 19:26:31
rubidium@openttd.org
(svn r14628) -Fix: projects/generate doesn't handle tabs in sources.list properly when determining whether a header is missing.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
projects/generate
Show inline comments
 
@@ -55,7 +55,7 @@ safety_check() {
 
	done
 
}
 

	
 
grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sort > tmp.headers.source.list
 
grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sed 's/	//' | sort > tmp.headers.source.list
 
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."
0 comments (0 inline, 0 general)