# HG changeset patch # User rubidium # Date 1208512163 0 # Node ID e4c1d7c5310ff82bed21a1bc9246bff018998978 # Parent 8c073d6e163d81723abd2d63156f8a9e85c7cffc (svn r12764) -Add: check for missing (forgotten) header files in the generate script. diff -r 8c073d6e163d -r e4c1d7c5310f projects/generate --- a/projects/generate Fri Apr 18 09:40:00 2008 +0000 +++ b/projects/generate Fri Apr 18 09:49:23 2008 +0000 @@ -55,6 +55,15 @@ 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 '