--- ray/src/util/rad.c 2015/05/27 14:26:04 2.117 +++ ray/src/util/rad.c 2015/08/01 23:27:04 2.119 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rad.c,v 2.117 2015/05/27 14:26:04 greg Exp $"; +static const char RCSid[] = "$Id: rad.c,v 2.119 2015/08/01 23:27:04 greg Exp $"; #endif /* * Executive program for oconv, rpict and pfilt @@ -9,6 +9,7 @@ static const char RCSid[] = "$Id: rad.c,v 2.117 2015/0 #include #include +#include #include "platform.h" #include "rtprocess.h" @@ -644,6 +645,8 @@ mkpmap(void) /* run mkpmap if indicated */ for (cp = combuf; *cp; cp++) ; mkpmapopts(cp); + /* force file overwrite */ + cp = addarg(cp, "-fo+"); if (vdef(REPORT)) { char errfile[256]; int n; @@ -657,16 +660,12 @@ mkpmap(void) /* run mkpmap if indicated */ badvalue(REPORT); } if (pgmapname != NULL && pgmapdate < oct1date) { - if (pgmapdate) - rmfile(pgmapname); cp = addarg(cp, "-apg"); addarg(cp, vval(PGMAP)); cp = sskip(sskip(cp)); /* remove any bandwidth */ *cp = '\0'; } if (pcmapname != NULL && pcmapdate < oct1date) { - if (pcmapdate) - rmfile(pcmapname); cp = addarg(cp, "-apc"); addarg(cp, vval(PCMAP)); cp = sskip(sskip(cp)); /* remove any bandwidth */