home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / usr / prman / shader < prev   
Encoding:
Text File  |  1992-07-22  |  604 b   |  34 lines

  1. #! /bin/sh
  2. #    @(#)shader.sh    1.11 (Pixar) 9/21/89
  3. estat=0
  4. files=""
  5. incpath=""
  6. funcpath=""
  7. opt=""
  8. outopt="-o -shader"
  9. prpath=/usr/prman
  10.  
  11. while test $# != 0
  12. do case "$1" in
  13.     -I*|-D*|-U*)    incpath="$incpath $1" ;;
  14.     -o)    outopt="$1 $2"; shift ;;
  15.     -F)    funcpath="$funcpath $1" ;;
  16.     -*)    opt="$opt $1" ;;
  17.     *)    files="$files $1" ;;
  18.     esac
  19.     shift
  20. done
  21. incpath="$incpath -I/NextLibrary/Shaders"
  22. funcpath="$funcpath -F. -F/NextLibrary/Shaders"
  23. for f in $files
  24. do
  25.     /lib/cpp $incpath $f | \
  26.         $prpath/lib/shadecom $funcpath $incpath -s $f $outopt $opt
  27.     cstat=$?
  28.     if test $cstat != 0
  29.     then
  30.         estat=$cstat
  31.     fi
  32. done
  33. exit $estat
  34.