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

Comparing ray/src/util/raddepend.csh (file contents):
Revision 2.1 by greg, Sat Jan 1 09:16:05 1994 UTC vs.
Revision 2.2 by greg, Sat Jan 1 10:30:23 1994 UTC

# Line 3 | Line 3
3   #
4   # Find scene dependencies in this directory and one level down
5   #
6 + if ( ! $?RAYPATH ) then
7 +        set RAYPATH=.:/usr/local/lib/ray
8 + endif
9   onintr quit
10 < ( ls $* | sed -e 's@^@/^@' -e 's@$@$/d@' ; echo "/^com$$"'$/,$d' ) > com$$
11 < xform -e $* > /dev/null
12 < ls -tu * */* | sed -f com$$ | sort
10 > rm -f EMPTY
11 > echo -n > EMPTY
12 > sleep 1
13 > ( ls $* | sed -e 's@^@/^@' -e 's@$@$/d@' ; echo '/^EMPTY$/,$d' ) > /tmp/sed$$
14 > xform -e $* | rcalc -l -i 'instance $(name) ${n} $(ot) ' -o '$(ot)\
15 > ' | sort -u > /tmp/otf$$
16 > foreach ot (`cat /tmp/otf$$`)
17 >        unset libfile
18 >        foreach d (`echo $RAYPATH | sed 's/:/ /g'`)
19 >                if ( $d == . ) continue
20 >                if ( -r $d/$ot ) set libfile
21 >        end
22 >        if ( ! $?libfile ) echo $ot
23 > end
24 > ls -tu | sed -f /tmp/sed$$ | sort
25   quit:
26 < rm -f com$$
26 > rm -f /tmp/sed$$ /tmp/otf$$ EMPTY

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines