#!/usr/pkg/bin/bash
# Eukleides version 1.0.3
# Eukleides to various vector graphic formats converter
# Copyright Christian Obrecht 2000-2002

file=`expr $1 : '\(.*\).euk' '|' $1`
euk2eps $1 \
&& epstopdf --exact $file.eps \
&& pstoedit -f $2 $file.pdf > $file.$2 \
&& rm $file.eps $file.pdf
