#! /bin/sh
# Shell file to filter MIF output
#
# Edit as needed to execute filters.
#
# Inputs are:
# $1 = file to be filtered (full path, example: /usr/drf/foo.wp )
# $2 = fminit directory
# $3 = bin directory
#
# See what the file type is, and run the appropriate program
case $1 in
	*.wp) $3/miftowp <$1 >/tmp/$$.wp
	mv /tmp/$$.wp $1;;
	*.iaf) $3/miftoiaf <$1 >/tmp/$$.iaf
	mv /tmp/$$.iaf $1;;
	*.rtf) $3/miftortf <$1 >/tmp/$$.rtf
	mv /tmp/$$.rtf $1;;
esac
