#! /bin/csh -f set usage = "$0 MAIN OPTIONS" set cmd = "$0"; set cmd = "${cmd:t}" set runargs = "$*" echo '=====================================================================' echo '=== '"${cmd} ${runargs}" if ( $#argv < 1 ) then echo "usage: ${usage}"; exit 1 endif set main = "$1" ; shift if ( ! ( -r ${main}.pov ) ) then echo "${main}.pov not found"; exit 1 endif set cmtfile = "${main}.comments" # Create the ".comments" file: /bin/rm -f ${cmtfile} echo "${cmd} ${runargs}" > ${cmtfile} ${STOLFIHOME}/posters/tools/run-povray $* ${main}.pov echo '=== END '"${cmd} ${runargs}" echo '====================================================================='