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 | c4cd912048b01927fbfbd08a1a43cec822cd5cc5 (patch) | |
tree | 2daabee8c52d7272d713682e20559c1abb604dc5 | |
parent | 64b46751d25151b2cf7deccdf6c78728aaceb3db (diff) | |
download | openttd-c4cd912048b01927fbfbd08a1a43cec822cd5cc5.tar.xz |
(svn r14628) -Fix: projects/generate doesn't handle tabs in sources.list properly when determining whether a header is missing.
-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." |