geckolib: Quote paths and remove things after the first non-preceding whitespace

This should allow `regen_style_structs.sh` to run on mac, where a path
like:

/.../Frameworks (framework dir)

was reported.
This commit is contained in:
Emilio Cobos Álvarez 2016-03-05 16:04:58 +01:00
parent a6ffabb2ad
commit 18b1cc68db

View file

@ -27,7 +27,8 @@ CLANG_SEARCH_DIRS=$(clang++ -E -x c++ - -v < /dev/null 2>&1 | awk '{ \
in_headers = 0; \
else if (in_headers == 1) { \
gsub(/^[ \t]+/, "", $0); \
printf " -isystem %s", $0; \
gsub(/[ \t].+$/, "", $0); \
printf " -isystem \"%s\"", $0; \
}
}' | sed -e s/:$//g)