#! /bin/bash -f # Last edited on 2014-02-22 13:05:03 by stolfilocal cmd="${0##*/}" usage="${cmd} FIGURE OPTIONS" runargs=("$@") echo '=====================================================================' echo '=== '"${cmd} ${runargs}" if [[ $# -lt 1 ]]; then echo "too few arguments" 1>&2; exit 1 echo "${usage}" 1>&2; exit 1 fi version="$1"; shift tooldir=${STOLFIHOME}/posters/tools name=main_${version} parminc="parameters.inc" cmtfile="${name}.comments" # Create the parameter files for inclusion by the .pov file # and by scripts: /bin/rm -f ${parminc} cat < ${parminc} // created by $0 - DO NOT EDIT EOF # Create the ".comments" file: /bin/rm -f ${cmtfile} echo "${cmd} ${runargs}" > ${cmtfile} echo "version ${version}" >> ${cmtfile} ${tooldir}/run-povray-png $@ ${name}.pov echo '=== END '"${cmd} ${runargs}" echo '====================================================================='