home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 4.0 PR1 / NeXT_NEXTSTEP_4.0_PR1_(beta).rar / Openstep4-Pr1User.iso / NextLibrary / Receipts / NeXTTeX.pkg / NeXTTeX.post_delete < prev    next >
Text File  |  1994-06-23  |  757b  |  34 lines

  1. #!/bin/sh
  2. #
  3. #   Kill off TeX and all the files it made.
  4. #
  5. #   Execute me from any directory!  Run as root!
  6. #
  7. echo "This script uninstalls TeX.  It *must* be run as superuser."
  8. #
  9. #   How do we know we are running as su?  We see if we can write to
  10. #   /usr.  Not the best way, surely.
  11. #
  12. BAD=false
  13. if test ! `whoami` = root
  14. then
  15.    echo " "
  16.    echo "Hey, you're not superuser!"
  17.    echo "This script can only be run as superuser."
  18.    echo "Please superuser and try again."
  19.    echo " "
  20.    exit
  21. fi
  22. #
  23. #   Set file protections correctly.
  24. #
  25. set -x
  26. /bin/rm -rf /NextLibrary/Fonts/TeXFonts
  27. cd /usr/lib
  28. /bin/rm -rf tex mf
  29. cd /usr/bin
  30. /bin/rm -rf latex slitex virtex initex mf
  31. /bin/rm -rf /NextLibrary/TeX
  32. /bin/rm -rf /LocalLibrary/Fonts/TeXFonts
  33. /bin/rm -rf /usr/tex/*
  34.