#!/bin/ksh
########################################################################
# Copyright (c) 1993. Jon M. Allingham. All rights reserved.
#
# Author: 	Jon Allingham
# Description:	Build a spell list in postscript format
# Usage:	mkspells <root>, output is to stdout
#		you must have the file root.spells
########################################################################
PROGNAME=${0##*/}
USAGE="$PROGNAME rootname"
AWKPROG=spell.awk
MKSHEETHOME=/usr/u/j/jona/mksheet

if [ $# = 0 ]; then
	>&2 echo "$USAGE"
	exit 0
fi

INPUTFILE=$1.spells

if [ ! -r $INPUTFILE ]; then
	>&2 echo "$PROGNAME: can't read $INTPUTFILE"
	exit 1
fi

awk -f $MKSHEETHOME/$AWKPROG $INPUTFILE | groff -t -mm
