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

Comparing ray/src/util/rtpict.pl (file contents):
Revision 2.32 by greg, Sat Sep 13 16:52:28 2025 UTC vs.
Revision 2.33 by greg, Sat Sep 13 17:54:39 2025 UTC

# Line 145 | Line 145 | while ($#ARGV >= 0 && "$ARGV[0]" =~ /^[-\@]/) {
145                  die "Unsupported option: " . $ARGV[0] . "\n";
146          }
147   }
148 < die "Number of processes must be positive" if ($nprocs <= 0);
148 > die "-o* option cannot contain spaces\n" if ($windoz && $outdir =~ /[   ]/);
149 > die "Number of processes must be positive\n" if ($nprocs <= 0);
150   if ($windoz && $nprocs > 1) {
151          print STDERR "Only one process supported under Windows\n";
152          $nprocs = 1;
# Line 263 | Line 264 | foreach my $oval (split //, $outlyr) {
264          die "File '$outfile' already exists\n" if (-e $outfile);
265          my ($otyp) = ($rtoutC{$oval} =~ /(\.[^.]+)$/);
266          push @rsplitA, $rcodeC{$otyp}[0];
267 <        push @rsplitA, qq{'$rcodeC{$otyp}[1] > "$outfile"'};
267 >        if ($windoz) {
268 >                push @rsplitA, qq{"$rcodeC{$otyp}[1] > $outfile"};
269 >        } else {
270 >                push @rsplitA, qq{'$rcodeC{$otyp}[1] > "$outfile"'};
271 >        }
272          delete $rtoutC{$oval};
273   }
274                          # call rtrace + rsplit

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines