home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 3.3J
/
os33j.iso
/
NextLibrary
/
Receipts
/
NeXTTeX.pkg
/
NeXTTeX.post_delete
< prev
next >
Wrap
Text File
|
1994-06-23
|
757b
|
34 lines
#!/bin/sh
#
# Kill off TeX and all the files it made.
#
# Execute me from any directory! Run as root!
#
echo "This script uninstalls TeX. It *must* be run as superuser."
#
# How do we know we are running as su? We see if we can write to
# /usr. Not the best way, surely.
#
BAD=false
if test ! `whoami` = root
then
echo " "
echo "Hey, you're not superuser!"
echo "This script can only be run as superuser."
echo "Please superuser and try again."
echo " "
exit
fi
#
# Set file protections correctly.
#
set -x
/bin/rm -rf /NextLibrary/Fonts/TeXFonts
cd /usr/lib
/bin/rm -rf tex mf
cd /usr/bin
/bin/rm -rf latex slitex virtex initex mf
/bin/rm -rf /NextLibrary/TeX
/bin/rm -rf /LocalLibrary/Fonts/TeXFonts
/bin/rm -rf /usr/tex/*