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

Comparing ray/src/util/genBSDF.pl (file contents):
Revision 2.58 by greg, Fri May 29 07:22:33 2015 UTC vs.
Revision 2.63 by greg, Tue Feb 9 23:05:26 2016 UTC

# Line 39 | Line 39 | if ($windoz) {
39          $tbz = "$td\\tbz.dat";
40          $rbz = "$td\\rbz.dat";
41          chomp $td;
42 <        $rmtmp = "rmdir /S /Q $td";
42 >        $rmtmp = "rd /S /Q $td";
43   } else {
44          $td = mkdtemp("/tmp/genBSDF.XXXXXX");
45          chomp $td;
# Line 222 | Line 222 | if ( $tensortree ) {
222          do_matrix_bsdf();
223   }
224   # Output XML
225 my $old_fh = select(STDOUT);
226 $| = 1;
227 select($old_fh);
228 print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
229 print "<!-- Created by: genBSDF @savedARGV -->\n";
225   # print STDERR "Running: $wrapper\n";
226 < system $wrapper;
226 > system "$wrapper -C \"Created by: genBSDF @savedARGV\"";
227   die "Could not wrap BSDF data\n" if ( $? );
228   # Clean up temporary files and exit
229   exec $rmtmp;
# Line 465 | Line 460 | sub matrix_comp {
460          $cmd .= " $src | rcollate -ho -oc 145";
461          # print STDERR "Running: $cmd\n";
462          system "$cmd > $dest";
463 <        die "Failure running rttree_reduce" if ( $? );
463 >        die "Failure running rmtxop" if ( $? );
464          if ( "$spec" ne "$curspec" ) {
465                  $wrapper .= " -s $spec";
466                  $curspec = $spec;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines