#!/bin/sh
# Shell script to run Mathomatic with the GNU m4 preprocessor.
# This allows entry of many standard math functions.
#
# Usage: matho [ input_files ]

if ! m4  --version >/dev/null
then
  echo The m4  package is not installed.  GNU m4 is required to run m4 Mathomatic.
  exit 1
fi

m4  -eP -- /build/mathomatic/pkg/mathomatic/usr/share/mathomatic/m4/functions.m4 "$@" - | mathomatic -ru -s-1
