diff options
author | rubidium <rubidium@openttd.org> | 2008-11-25 19:26:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-11-25 19:26:31 +0000 |
commit | f11d00abe6d190b21827f5ac00ec5de53d0f4abf (patch) | |
tree | 2daabee8c52d7272d713682e20559c1abb604dc5 /projects/generate | |
parent | 4001cff85b8810e5372223a3a9cc73cc4dc22cbe (diff) | |
download | openttd-f11d00abe6d190b21827f5ac00ec5de53d0f4abf.tar.xz |
(svn r14628) -Fix: projects/generate doesn't handle tabs in sources.list properly when determining whether a header is missing.
Diffstat (limited to 'projects/generate')
-rwxr-xr-x | projects/generate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/generate b/projects/generate index 220eb3e77..7d97549b9 100755 --- a/projects/generate +++ b/projects/generate @@ -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." |