mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
mpw-make -- support for quoted strings.
This commit is contained in:
parent
cd99626176
commit
aae68c20dd
@ -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);
|
||||
};
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user