Changeset - r8972:137e7b61f897
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2008-04-18 09:49:23
rubidium@openttd.org
(svn r12764) -Add: check for missing (forgotten) header files in the generate script.
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
projects/generate
Show inline comments
 
@@ -55,6 +55,15 @@ safety_check() {
 
	done
 
}
 

	
 
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
 
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
 
	echo ""
 
fi
 
rm tmp.headers.*
 

	
 
load_main_data() {
 
	# Read the source.list and process it
 
	RES="`cat $1 | tr '\r' '\n' | awk '
0 comments (0 inline, 0 general)