eps2hpgl.sh 347 Bytes
Newer Older
gijs's avatar
gijs committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#! /bin/bash

if [ "$#" -gt 0 ]; then
  eps=${1}
  base=$(basename ${eps} .eps)
  dirty="${base}.dirty.hpgl"
  clean="${base}.hpgl"

  pstoedit -f plot-hpgl "${eps}" "${dirty}"
  # Clean HPGL
  ./hpgl-distiller -i "${dirty}" -o "${clean}"
  rm "${dirty}"
else
  echo "Usage: eps2hpgl.sh [epsfile]"
  echo "Converts eps file to hpgl description"
fi