#!/bin/sh

PATH=/bin:/usr/bin:/opt/local/bin:/opt/local/libexec:/usr/libexec

case $1 in
-T*)	t=$1
	shift ;;
*)	t=-T$TERM
esac

case $t in
-Ttek4014|-Ttek|-T4014)	exec tekplot "$@" ;;
-T4013)	exec t4013plot "$@" ;;
-Tbitgraph|-Tbg)	exec bgplot "$@" ;;
-Tgigi|-Tvt125)	exec gigiplot "$@" ;;
-Thp7221|-Thp7|-Th7)	exec hp7221plot "$@" ;;
-Tip|-Timagen)	exec implot "$@" ;;
-Tdumb|-Tunknown)	exec dumbplot "$@" ;;
*)	exec crtplot "$@" ;;
esac
