home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 12 / Silicon_Graphics_Developer_Magic_Soft_Dev_812-8101-012.iso / .all / demos / RapidApp / RemoveIt2 < prev   
Encoding:
Text File  |  1995-11-27  |  615 b   |  35 lines

  1. #!/bin/csh -f
  2.  
  3. set INST_PATH=/usr/lib/RapidApp
  4. set INST_DIR=RapidApp
  5. if ( `versions RapidApp.sw | grep RapidApp | wc -l` == 0 ) then
  6.     goto NO_INSTALL
  7. else
  8. echo "About to remove the entire $INST_DIR installation."
  9. LOOP2:
  10. echo " "
  11. echo "Continue (y/n)?  \c"
  12. set a = $<
  13. if ( $a == 'n' ) then
  14.     exit -1
  15. else if ( $a == 'y' ) then
  16. else
  17.     goto LOOP2
  18. endif
  19. NO_INSTALL:
  20. if ( -e $INST_PATH ) then
  21.     versions remove $INST_DIR
  22.     echo " "
  23.         echo "Removal Complete\!"
  24.         echo " "
  25.  
  26. else
  27.     echo " "
  28.     echo "RapidApp is not currently installed."
  29.     echo " "
  30. endif
  31. endif
  32. echo "Press Enter to exit this window...  \c"
  33. set a = $<
  34.  
  35.