From 18b1cc68db8aa2f4cf58c67223184016c7745edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 5 Mar 2016 16:04:58 +0100 Subject: [PATCH] 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. --- ports/geckolib/tools/regen_style_structs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/geckolib/tools/regen_style_structs.sh b/ports/geckolib/tools/regen_style_structs.sh index 5e0bdd45afa..7d18fbbd28d 100755 --- a/ports/geckolib/tools/regen_style_structs.sh +++ b/ports/geckolib/tools/regen_style_structs.sh @@ -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)