Debian Codegraph @

m4/matho-uninstall

raw
1 #!/bin/sh
2 # This shell script uninstalls m4 Mathomatic if installed
3 # with matho-install or matho-install-degrees.
4 # To uninstall Mathomatic from your computer,
5 # type "sudo ./matho-uninstall".
6
7 PREFIX=/usr/local
8 BINDIR=$PREFIX/bin
9 MANDIR=$PREFIX/share/man/man1
10 MATHOMATIC=mathomatic
11 BINFILES="$MATHOMATIC matho rmath functions.m4"
12 MANFILES="mathomatic.1 rmath.1 matho.1"
13
14 set -x
15 for file in $BINFILES;
16 do
17 rm -f "$BINDIR"/"$file";
18 done
19 for file in $MANFILES;
20 do
21 rm -f "$MANDIR"/"$file";
22 done
23
24 echo "$MATHOMATIC" uninstalled.