From b8350fa9de5d49f03d5b17784533f52ebf23f979 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Sun, 31 Mar 2019 21:11:59 -0700 Subject: [PATCH] Fix staticdefine.sh when it's in a directory with spaces --- tools/staticdefine.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/staticdefine.sh b/tools/staticdefine.sh index dd60736887..a09e33217a 100755 --- a/tools/staticdefine.sh +++ b/tools/staticdefine.sh @@ -15,7 +15,7 @@ command = command.split()[:-9] + ['-MD', '-MQ', '$output', '-MF', '$dep'] print(' '.join(command)) END ) -$flags $input -include $(dirname $0)/staticdefine.h -S -o - | \ +$flags $input -include "$(dirname $0)/staticdefine.h" -S -o - | \ sed -ne 's:^[[:space:]]*\.ascii[[:space:]]*"\(.*\)".*:\1:; /^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:;