#! /bin/bash -f # Last edited on 2012-02-18 04:46:15 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 edition="$1"; shift side="$1"; shift # parms_kind="$1"; shift # parms_chop="$1"; shift # parms_axes="$1"; shift # parms_base="$1"; shift # style="$1"; shift tooldir=${STOLFIHOME}/posters/tools name=main_${edition}_${side} 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 "scene ${scene} style ${style}" >> ${cmtfile} ${tooldir}/run-povray-png $@ ${name}.pov echo '=== END '"${cmd} ${runargs}" echo '====================================================================='