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

Comparing ray/src/util/rtpict.pl (file contents):
Revision 2.2 by greg, Tue Mar 20 01:38:27 2018 UTC vs.
Revision 2.4 by greg, Tue Mar 20 23:05:48 2018 UTC

# Line 90 | Line 90 | while ($#ARGV >= 0 && "$ARGV[0]" =~ /^[-\@]/) {
90          }
91   }
92   die "Number of processes must be positive" if ($nprocs <= 0);
93 < if ($outpic) {                  # redirect output?
93 > if (defined $outpic) {          # redirect output?
94 >        die "File '$outpic' already exists\n" if (-e $outpic);
95          open STDOUT, '>', "$outpic";
96   }
97   if ($nprocs == 1) {             # may as well run rpict?
# Line 103 | Line 104 | chomp $rtraceA[-1];
104   push @rtraceA, ("-n", "$nprocs");
105   push @rtraceA, $ARGV[0];
106   my @view = (`@vwrightA 0`);
107 < exec "@vwraysA | @rtraceA | getinfo -a 'VIEW=@view'";
107 > exec qq{@vwraysA | @rtraceA | getinfo -a "VIEW=@view"};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines