Skip to content

Commit

Permalink
Fix staticdefine.sh when it's in a directory with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Apr 1, 2019
1 parent d4b68fb commit b8350fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/staticdefine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 */:;
Expand Down

0 comments on commit b8350fa

Please sign in to comment.