Mercurial > hg > openttd
changeset 8972:9837d8a1f782 draft
(svn r12764) -Add: check for missing (forgotten) header files in the generate script.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 18 Apr 2008 09:49:23 +0000 |
parents | 94a60069ff9a |
children | f8dda7737158 |
files | projects/generate |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/projects/generate +++ b/projects/generate @@ -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 '