#! /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 ) # The file to be filtered has a suffix indicating which filter to run # and contains mif. # $2 = .fminit2.0's directory # $3 = maker's 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;; *.html) xlisp $HOME/.fminit2.0/mif2html.l <$1 >/tmp/$$.html mv /tmp/$$.html $1;; esac