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.113 by greg, Wed May 27 12:50:46 2015 UTC vs.
Revision 2.115 by greg, Wed May 27 14:12:09 2015 UTC

# Line 401 | Line 401 | checkfiles(void)                       /* check for existence and modified
401                  atos(fntemp, sizeof(fntemp), vval(PCMAP));
402                  pcmapname = savqstr(fntemp);
403                  pcmapdate = fdate(pcmapname);
404                if (pgmapname == NULL && !nowarn)
405                        fprintf(stderr, "%s: warning - '%s' assigned without '%s'\n",
406                                        progname, vnam(PCMAP), vnam(PGMAP));
404          }
405          matdate = checklast(vval(MATERIAL));
406   }      
# Line 675 | Line 672 | mkpmap(void)                   /* run mkpmap if indicated */
672                  if (runcom(combuf)) {
673                          fprintf(stderr, "%s: error running %s\n",
674                                          progname, c_mkpmap);
675 <                        if (pgmapname != NULL)
675 >                        if (pgmapname != NULL && pgmapdate < oct1date)
676                                  unlink(pgmapname);
677 <                        if (pcmapname != NULL)
677 >                        if (pcmapname != NULL && pcmapdate < oct1date)
678                                  unlink(pcmapname);
679                          quit(1);
680                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines