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.5 by greg, Mon Aug 25 04:50:32 2008 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2 < # SCCSid "$SunId$ LBL"
2 > # RCSid: $Id$
3   #
4   # Display one or more CIE XYZE pictures using ximage
5   #
# Line 48 | Line 48 | while ( $i <= $#argv && ! $firstarg )
48          endsw
49          set i=$i1
50   end
51 + set ecode=1
52   onintr quit
53 + set td=`mktemp -d /tmp/xyz.XXXXXX`
54   if ( ! $firstarg ) then
55 <        set rgbfiles=/usr/tmp/stdin.$$
54 <        ra_xyze -r -u $popt > /usr/tmp/stdin.$$
55 >        ra_xyze -r -u $popt > $td/stdin
56          if ( $status ) goto quit
57   else
57        set rgbfiles=""
58          set i=$firstarg
59          while ( $i <= $#argv )
60 <                set rgbfiles=($rgbfiles /usr/tmp/$argv[$i]:t.$$)
61 <                ra_xyze -r -u $popt $argv[$i] /usr/tmp/$argv[$i]:t.$$
60 >                ra_xyze -r -u $popt $argv[$i] $td/$argv[$i]:t
61                  if ( $status ) goto quit
62                  @ i++
63          end
64   endif
65 < ximage $xiargs $rgbfiles
65 > ximage $xiargs $td/*
66 > set ecode=$status
67   quit:
68 <        rm -f $rgbfiles
69 <        exit 0
68 >        rm -rf $td
69 >        exit $ecode
70   notenough:
71          echo "Missing arguments for $argv[$i] option"
72          exit 1

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines