#!/bin/sh
# handle fig file for lout, expects args %f %S
set -e			# die on any error
BASE=`basename $2 .fig`
IN=$2			# input file
OUT=$BASE.eps		# output file

[ -f "$IN" ] || exit 1	# ensure our file exists

 fig2dev -L ps $IN $OUT  
#echo @IncludeGraphic{ \"$TARGET\" }
echo @VContract{// @IncludeGraphic{ \"$TARGET\" }// }