home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2J
/
os42j.iso
/
usr
/
prman
/
shader
< prev
Wrap
Text File
|
1996-01-25
|
675b
|
36 lines
#! /bin/sh
# @(#)shader.sh 1.11 (Pixar) 9/21/89
estat=0
files=""
incpath=""
funcpath=""
opt=""
outopt="-o -shader"
arch=`/usr/bin/arch`
shadecom="/usr/prman/lib/shadecom"
while test $# != 0
do case "$1" in
-I*|-D*|-U*) incpath="$incpath $1" ;;
-o) outopt="$1 $2"; shift ;;
-F*) funcpath="$funcpath $1" ;;
-SCP) shadecom="$2"; shift ;;
-*) opt="$opt $1" ;;
*) files="$files $1" ;;
esac
shift
done
incpath="$incpath -I. -I/NextLibrary/Shaders"
funcpath="$funcpath -F. -F/NextLibrary/Shaders"
for f in $files
do
/lib/$arch/cpp $incpath $f | \
$shadecom $funcpath $incpath -s $f $outopt $opt
cstat=$?
if test $cstat != 0
then
estat=$cstat
fi
done
exit $estat