summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-25 19:26:31 +0000
committerrubidium <rubidium@openttd.org>2008-11-25 19:26:31 +0000
commitc4cd912048b01927fbfbd08a1a43cec822cd5cc5 (patch)
tree2daabee8c52d7272d713682e20559c1abb604dc5 /projects
parent64b46751d25151b2cf7deccdf6c78728aaceb3db (diff)
downloadopenttd-c4cd912048b01927fbfbd08a1a43cec822cd5cc5.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')
-rwxr-xr-xprojects/generate2
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."