#!/bin/sh

cmd=gtcont

if [ X$1 = X-v ]; then
	shift
	cmd=gtvect
elif [ X$1 = X-u ]; then
	shift
	cmd=gtcurv
fi

tmp=/tmp/gtanim$$
gtmetrics -d $1 > $tmp
read dims trash < $tmp
rm $tmp

if [ X$dims = X1 ]; then
	cmd=gtcurv
fi


echo $cmd -sw:lalt=t -sw:lwait=f $*
exec $cmd -sw:lalt=t -sw:lwait=f $*
