2 # $RCSfile: ps2epsi,v $ $Revision: 1.4.2.2 $
4 if [ $# -lt 1 -o $# -gt 2 ]; then
5 echo "Usage: `basename $0` file.ps [file.ai]" 1>&2
14 *.ps) base=`basename ${infile} .ps` ;;
15 *.cps) base=`basename ${infile} .cps` ;;
16 *.eps) base=`basename ${infile} .eps` ;;
17 *.epsf) base=`basename ${infile} .epsf` ;;
18 *) base=`basename ${infile}` ;;
20 outfile=$( echo "${infile}"|perl -pe 's/\.[^\.]+$//').ai
25 gs -q -dNODISPLAY ps2ai.ps <${infile} > $outfile