ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rad.c
(Generate patch)

Comparing ray/src/util/rad.c (file contents):
Revision 2.114 by greg, Wed May 27 13:29:57 2015 UTC vs.
Revision 2.118 by greg, Wed May 27 14:32:35 2015 UTC

# Line 644 | Line 644 | mkpmap(void)                   /* run mkpmap if indicated */
644                  for (cp = combuf; *cp; cp++)
645                          ;
646                  mkpmapopts(cp);
647 +                                /* force file overwrite */
648 +                cp = addarg(cp, "-fo+");
649                  if (vdef(REPORT)) {
650                          char    errfile[256];
651                          int     n;
# Line 672 | Line 674 | mkpmap(void)                   /* run mkpmap if indicated */
674                  if (runcom(combuf)) {
675                          fprintf(stderr, "%s: error running %s\n",
676                                          progname, c_mkpmap);
677 <                        if (pgmapname != NULL)
677 >                        if (pgmapname != NULL && pgmapdate < oct1date)
678                                  unlink(pgmapname);
679 <                        if (pcmapname != NULL)
679 >                        if (pcmapname != NULL && pcmapdate < oct1date)
680                                  unlink(pcmapname);
681                          quit(1);
682                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines