#!/bin/sh
# This shell script uninstalls m4 Mathomatic if installed with matho-install.
# To uninstall Mathomatic from your computer, type "sudo ./matho-uninstall".

BINDIR=${1-/usr/local/bin}
MATHOMATIC=mathomatic
FILES="$MATHOMATIC matho rmath functions.m4"

for file in $FILES;
do
	rm "$BINDIR"/"$file";
done

echo "$MATHOMATIC" uninstalled.
