#!/bin/sh tmp="/tmp/aigvis$$" trap "rm -f $tmp.*" 2 6 11 aigtodot $* > $tmp.dot || exit 1 dot -Tps $tmp.dot > $tmp.eps || exit 1 epstopdf $tmp.eps || exit 1 evince $tmp.pdf rm -f $tmp.*