ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/xyzimage.csh
(Generate patch)

Comparing ray/src/px/xyzimage.csh (file contents):
Revision 2.1 by greg, Thu Feb 15 10:44:56 1996 UTC vs.
Revision 2.2 by greg, Thu Feb 15 11:11:39 1996 UTC

# Line 48 | Line 48 | while ( $i <= $#argv && ! $firstarg )
48          endsw
49          set i=$i1
50   end
51 + set td=/usr/tmp/xyz$$
52 + set ecode=1
53   onintr quit
54 + mkdir $td
55   if ( ! $firstarg ) then
56 <        set rgbfiles=/usr/tmp/stdin.$$
54 <        ra_xyze -r -u $popt > /usr/tmp/stdin.$$
56 >        ra_xyze -r -u $popt > $td/stdin
57          if ( $status ) goto quit
58   else
57        set rgbfiles=""
59          set i=$firstarg
60          while ( $i <= $#argv )
61 <                set rgbfiles=($rgbfiles /usr/tmp/$argv[$i]:t.$$)
61 <                ra_xyze -r -u $popt $argv[$i] /usr/tmp/$argv[$i]:t.$$
61 >                ra_xyze -r -u $popt $argv[$i] $td/$argv[$i]:t
62                  if ( $status ) goto quit
63                  @ i++
64          end
65   endif
66 < ximage $xiargs $rgbfiles
66 > ximage $xiargs $td/*
67 > set ecode=$status
68   quit:
69 <        rm -f $rgbfiles
70 <        exit 0
69 >        rm -rf $td
70 >        exit $ecode
71   notenough:
72          echo "Missing arguments for $argv[$i] option"
73          exit 1

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines