mpw-make -- support for quoted strings.

This commit is contained in:
Kelvin Sherlock 2015-06-23 12:17:30 -04:00
parent cd99626176
commit aae68c20dd
2 changed files with 16 additions and 1 deletions

View File

@ -71,6 +71,18 @@ LinkIIGS TheHeader.aii.obj IRModule.p.obj ?
token.append(ts + 1, te - 1);
};
['] [^']* ['] => {
// quoted string -- remove quotes.
token.append(ts + 1, te - 1);
};
["] [^"]* ["] => {
// quoted string -- remove quotes.
token.append(ts + 1, te - 1);
};
any => {
token.push_back(*ts);
};

View File

@ -88,7 +88,10 @@ int launch_command(std::vector<char *> &argv) {
argv.push_back(nullptr);
print_command(argv);
if (dry_run) return 0;
if (dry_run) {
printf("\n");
return 0;
}
pid = fork();
if (pid < 0) {