version 1.53, 2017/07/09 15:28:00 |
version 1.54, 2017/07/24 12:08:15 |
|
|
} |
} |
|
|
static bool |
static bool |
do_run_command(Job *job) |
do_run_command(Job *job, const char *pre) |
{ |
{ |
bool silent; /* Don't print command */ |
bool silent; /* Don't print command */ |
bool doExecute; /* Execute the command */ |
bool doExecute; /* Execute the command */ |
|
|
/* How can we execute a null command ? we warn the user that the |
/* How can we execute a null command ? we warn the user that the |
* command expanded to nothing (is this the right thing to do?). */ |
* command expanded to nothing (is this the right thing to do?). */ |
if (*cmd == '\0') { |
if (*cmd == '\0') { |
Error("%s expands to empty string", cmd); |
Parse_Error(PARSE_WARNING, |
|
"'%s' expands to '' while building %s", |
|
pre, job->node->name); |
return false; |
return false; |
} |
} |
|
|
|
|
job->next_cmd = Lst_Adv(job->next_cmd); |
job->next_cmd = Lst_Adv(job->next_cmd); |
if (fatal_errors) |
if (fatal_errors) |
Punt(NULL); |
Punt(NULL); |
started = do_run_command(job); |
started = do_run_command(job, command->string); |
if (started) |
if (started) |
return false; |
return false; |
else |
else |