#! /bin/bash # ps -> eps --> pdf dirc=`pwd` prog=$0 PROG=`basename $prog` dirp=`dirname $prog` if [ $# -ne 1 ] ; then echo "Error - 1 parameter (filename without the last extension required)" exit fi fnam=$1 fnam=`echo $fnam | sed s/\.ps$//` if ! test -s "$fnam".ps ; then echo Error - file "$fnam".ps is missing exit fi ps2epsi ${fnam}.ps "$dirp"/cleaneps.com -f ${fnam}.epsi epstopdf ${fnam}.epsi