mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-20 14:09:19 +00:00
(svn r14628) -Fix: projects/generate doesn't handle tabs in sources.list properly when determining whether a header is missing.
This commit is contained in:
parent
64b46751d2
commit
c4cd912048
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user