#!/bin/sh

if [ $# = 0 ] ; then echo "bad args"; exit 1; fi

FST=$1
DOT=${FST%%.gfst}.dot
EPS=${DOT%%.dot}.eps

echo "to dot..."
gfst2dot -o $DOT $FST
echo "to eps..."
dot2eps $DOT

gv $EPS
