#!/bin/sh if [ $# != 1 ] ; then echo src_screenshot_pov file.tlcc else case $1 in *.tlcc) OUT=/tmp/`basename $1 .tlcc`.tga ;; *.hcc) OUT=/tmp/`basename $1 .hcc`.tga ;; *) echo "Don't know how to process this file type" >&2 exit 1 ;; esac TMP=/tmp/src_screenshot.$$ src_screenshot $1 >$TMP PARAMS=`grep VIEWPARAMS $TMP | sed s.//VIEWPARAMS..` #echo $PARAMS echo povray +A $PARAMS -I$TMP -O$OUT povray +A $PARAMS -I$TMP -O$OUT echo File $OUT was produced rm -f $TMP fi