#!/bin/sh
# Author: Jeff Dalton
# Updated: Tue May 13 17:34:50 2008 by Jeff Dalton
# Copyright: (c) 2004, AIAI, University of Edinburgh

this_dir=`dirname "$0"`
# export ix=$this_dir/..

if [ "$#" -lt 1 ]
then
    echo "usage: psgraph-ix-plan graph-file [-output file]"
    exit 1
fi

plan_file=$1;
shift;

$this_dir/cvt-plan-for-psgraph -plan="$plan_file" \
    | $this_dir/oplan -subr \
	-no -windows -not -interactive  \
	-load $this_dir/draw-psgraph-for-ix.lsp \
        -oplan-tmp-dir /tmp \
	-ps-viewer "gv -orientation=landscape" \
	-graph - \
	-do "(main-draw-psgraph-for-ix)" \
	"$@"
