version 1.58, 2005/05/08 04:19:12 |
version 1.59, 2005/07/25 22:55:58 |
Line 180 CompatInterrupt(int signo) |
|
Line 180 CompatInterrupt(int signo) |
|
} |
} |
|
|
} |
} |
exit (signo); |
exit(signo); |
} |
} |
|
|
/*- |
/*- |
Line 296 CompatRunCommand(ClientData cmdp, Client |
|
Line 296 CompatRunCommand(ClientData cmdp, Client |
|
* this one. We also print the command if -n given. |
* this one. We also print the command if -n given. |
*/ |
*/ |
if (!silent || NoExecute(gn)) { |
if (!silent || NoExecute(gn)) { |
printf ("%s\n", cmd); |
printf("%s\n", cmd); |
fflush(stdout); |
fflush(stdout); |
} |
} |
|
|
Line 390 CompatRunCommand(ClientData cmdp, Client |
|
Line 390 CompatRunCommand(ClientData cmdp, Client |
|
cp++; |
cp++; |
} |
} |
} |
} |
printf ("\n"); |
printf("\n"); |
} |
} |
printf ("*** Error code %d", status); |
printf("*** Error code %d", status); |
} |
} |
} else { |
} else { |
status = WTERMSIG(reason); /* signaled */ |
status = WTERMSIG(reason); /* signaled */ |
printf ("*** Signal %d", status); |
printf("*** Signal %d", status); |
} |
} |
|
|
|
|
Line 408 CompatRunCommand(ClientData cmdp, Client |
|
Line 408 CompatRunCommand(ClientData cmdp, Client |
|
* Abort the current target, but let others |
* Abort the current target, but let others |
* continue. |
* continue. |
*/ |
*/ |
printf (" (continuing)\n"); |
printf(" (continuing)\n"); |
} |
} |
} else { |
} else { |
/* |
/* |
* Continue executing commands for this target. |
* Continue executing commands for this target. |
* If we return 0, this will happen... |
* If we return 0, this will happen... |
*/ |
*/ |
printf (" (ignored)\n"); |
printf(" (ignored)\n"); |
status = 0; |
status = 0; |
} |
} |
} |
} |
Line 506 Compat_Make(ClientData gnp, ClientData p |
|
Line 506 Compat_Make(ClientData gnp, ClientData p |
|
* to tell him/her "yes". |
* to tell him/her "yes". |
*/ |
*/ |
if (queryFlag) { |
if (queryFlag) { |
exit (1); |
exit(1); |
} |
} |
|
|
/* |
/* |
Line 560 Compat_Make(ClientData gnp, ClientData p |
|
Line 560 Compat_Make(ClientData gnp, ClientData p |
|
pgn->flags &= ~REMAKE; |
pgn->flags &= ~REMAKE; |
} else { |
} else { |
PrintOnError("\n\nStop."); |
PrintOnError("\n\nStop."); |
exit (1); |
exit(1); |
} |
} |
} else if (gn->made == ERROR) { |
} else if (gn->made == ERROR) { |
/* |
/* |
Line 674 Compat_Run(Lst targs) |
|
Line 674 Compat_Run(Lst targs) |
|
*/ |
*/ |
errors = 0; |
errors = 0; |
while (!Lst_IsEmpty (targs)) { |
while (!Lst_IsEmpty (targs)) { |
gn = (GNode *) Lst_DeQueue(targs); |
gn = (GNode *)Lst_DeQueue(targs); |
Compat_Make(gn, gn); |
Compat_Make(gn, gn); |
|
|
if (gn->made == UPTODATE) { |
if (gn->made == UPTODATE) { |
printf ("`%s' is up to date.\n", gn->name); |
printf("`%s' is up to date.\n", gn->name); |
} else if (gn->made == ABORTED) { |
} else if (gn->made == ABORTED) { |
printf ("`%s' not remade because of errors.\n", gn->name); |
printf("`%s' not remade because of errors.\n", gn->name); |
errors += 1; |
errors += 1; |
} |
} |
} |
} |