#! /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

set cmtfile = "${main}.comments"

# Create the ".comments" file:

/bin/rm -f ${cmtfile}
echo "${cmd} ${runargs}" > ${cmtfile}

${HOME}/posters/tools/run-povray-png $* ${main}.pov

echo '=== END '"${cmd} ${runargs}" 

echo '====================================================================='
