diff projects/generate @ 10377:52d16db65972 draft

(svn r14628) -Fix: projects/generate doesn't handle tabs in sources.list properly when determining whether a header is missing.
author rubidium <rubidium@openttd.org>
date Tue, 25 Nov 2008 19:26:31 +0000 (2008-11-25)
parents 69273d6f4bb2
children 02bd75018686
line wrap: on
line diff
--- a/projects/generate
+++ b/projects/generate
@@ -55,7 +55,7 @@
 	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."