home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEPLOY / RUNTIME.Z / svuninst.sh < prev    next >
Text File  |  1996-09-08  |  1KB  |  66 lines

  1. #
  2. # NAME:
  3. #
  4. #       svcuninstall.sh installs all the TrueType fonts
  5. #
  6. # SYNOPSIS:    
  7. #
  8. #    svcuninstall.sh NeXT_root_directory major_version minor_version 
  9. #                Windows_root_directory
  10. #
  11. #
  12. # DESCRIPTION:
  13. #
  14. #    svcuninstall.sh is a Bourne shell script used to 
  15. #    install the machd and nmserver services into the registry.
  16. #
  17. #  EXAMPLES:
  18. #
  19. #    >svcuninstall.sh $(NEXT_ROOT)
  20. #
  21.  
  22. # Check arguments 
  23. case $# in
  24.     1 )
  25.         ;;
  26.     * )
  27.         echo "svcuninstall.sh : usage";
  28.         echo "      svcuninstall.sh NeXT_root_directory";
  29.         exit 1;;
  30. esac
  31. echo "Number of parameters okay"
  32.  
  33. PATH=$1/NextLibrary/Executables\;$PATH
  34. export PATH
  35. echo $PATH
  36.  
  37. MACHD_EXE=$1/NextLibrary/System/machd.exe
  38. NMSERVER_EXE=$1/NextLibrary/System/nmserver.exe
  39.  
  40. sleep 2
  41. # Check Next root directory
  42. if test ! -d $1
  43. then
  44.     echo "svcuninstall : invalid NeXT root directory" $1
  45.     exit 1
  46. fi
  47. echo "Next Root okay"
  48.  
  49. if test ! -f $MACHD_EXE
  50. then
  51.     echo "svcuninstall : Can't find machd" $MACHD_EXE
  52.     exit 1
  53. fi
  54. echo "machd okay"
  55.  
  56. if test ! -f $NMSERVER_EXE
  57. then
  58.     echo "svcuninstall : Can't find nmserver" $NMSERVER_EXE
  59.     exit 1
  60. fi
  61. echo "nmserver okay"
  62.  
  63.  
  64. $NMSERVER_EXE -remove
  65. $MACHD_EXE -remove
  66.