home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # @(#)shader.sh 1.11 (Pixar) 9/21/89
- estat=0
- files=""
- incpath=""
- funcpath=""
- opt=""
- outopt="-o -shader"
- prpath=/usr/prman
-
- while test $# != 0
- do case "$1" in
- -I*|-D*|-U*) incpath="$incpath $1" ;;
- -o) outopt="$1 $2"; shift ;;
- -F) funcpath="$funcpath $1" ;;
- -*) opt="$opt $1" ;;
- *) files="$files $1" ;;
- esac
- shift
- done
- incpath="$incpath -I/NextLibrary/Shaders"
- funcpath="$funcpath -F. -F/NextLibrary/Shaders"
- for f in $files
- do
- /lib/cpp $incpath $f | \
- $prpath/lib/shadecom $funcpath $incpath -s $f $outopt $opt
- cstat=$?
- if test $cstat != 0
- then
- estat=$cstat
- fi
- done
- exit $estat
-