home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-User.iso / usr / prman / shader < prev   
Text File  |  1996-01-25  |  675b  |  36 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. arch=`/usr/bin/arch`
  10. shadecom="/usr/prman/lib/shadecom"
  11.  
  12. while test $# != 0
  13. do case "$1" in
  14.     -I*|-D*|-U*)    incpath="$incpath $1" ;;
  15.     -o)    outopt="$1 $2"; shift ;;
  16.     -F*)    funcpath="$funcpath $1" ;;
  17.     -SCP)   shadecom="$2"; shift ;;
  18.     -*)    opt="$opt $1" ;;
  19.     *)    files="$files $1" ;;
  20.     esac
  21.     shift
  22. done
  23. incpath="$incpath -I. -I/NextLibrary/Shaders"
  24. funcpath="$funcpath -F. -F/NextLibrary/Shaders"
  25. for f in $files
  26. do
  27.     /lib/$arch/cpp $incpath $f | \
  28.         $shadecom $funcpath $incpath -s $f $outopt $opt
  29.     cstat=$?
  30.     if test $cstat != 0
  31.     then
  32.         estat=$cstat
  33.     fi
  34. done
  35. exit $estat
  36.