9 |
|
|
10 |
|
#include <ctype.h> |
11 |
|
#include <time.h> |
12 |
+ |
#include <signal.h> |
13 |
|
|
14 |
|
#include "platform.h" |
15 |
|
#include "rtprocess.h" |
402 |
|
atos(fntemp, sizeof(fntemp), vval(PCMAP)); |
403 |
|
pcmapname = savqstr(fntemp); |
404 |
|
pcmapdate = fdate(pcmapname); |
404 |
– |
if (pgmapname == NULL && !nowarn) |
405 |
– |
fprintf(stderr, "%s: warning - '%s' assigned without '%s'\n", |
406 |
– |
progname, vnam(PCMAP), vnam(PGMAP)); |
405 |
|
} |
406 |
|
matdate = checklast(vval(MATERIAL)); |
407 |
|
} |
645 |
|
for (cp = combuf; *cp; cp++) |
646 |
|
; |
647 |
|
mkpmapopts(cp); |
648 |
+ |
/* force file overwrite */ |
649 |
+ |
cp = addarg(cp, "-fo+"); |
650 |
|
if (vdef(REPORT)) { |
651 |
|
char errfile[256]; |
652 |
|
int n; |
675 |
|
if (runcom(combuf)) { |
676 |
|
fprintf(stderr, "%s: error running %s\n", |
677 |
|
progname, c_mkpmap); |
678 |
< |
if (pgmapname != NULL) |
678 |
> |
if (pgmapname != NULL && pgmapdate < oct1date) |
679 |
|
unlink(pgmapname); |
680 |
< |
if (pcmapname != NULL) |
680 |
> |
if (pcmapname != NULL && pcmapdate < oct1date) |
681 |
|
unlink(pcmapname); |
682 |
|
quit(1); |
683 |
|
} |