#! /bin/sh

TMPDIR="${TMPDIR-/tmp}"
TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/tmp-eps-$$.pdf"`
epstopdf "$1" -o="${TEMPFILENAME}" > /dev/null 2>&1
rc=0
cat < "${TEMPFILENAME}" || rc=1
rm -f "${TEMPFILENAME}"
exit $rc
