home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 12 / Silicon_Graphics_Developer_Magic_Soft_Dev_812-8101-012.iso / .all / demos / RapidApp / LaunchIt.csh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-11-27  |  1.9 KB  |  68 lines

  1. #! /bin/csh -f
  2.  
  3. set CD_PATH=$DMTOOLSDIR/demos/RapidApp
  4. cd $CD_PATH
  5. ASK:
  6. AGAIN:
  7.      echo Please select from the following:; \
  8.          echo ; \
  9.          echo "1. Install RapidApp"
  10.          echo "2. Remove RapidApp" 
  11.          echo "3. Quit" 
  12.      echo "(enter 1, 2, or 3)  \c"
  13.         set ans=($<)
  14.                 if ( $ans == '3' ) exit
  15.  
  16.                 if ( $ans == '1' ) then
  17.             echo "You have selected to Install RapidApp."
  18.             echo "                     ======="
  19.             echo "Continue (y/n)?  \c"
  20.             set ans=($<)
  21.                         if ( $ans != 'y' ) then
  22.                   echo "Would you like to exit (y/n)?  \c"
  23.                     set ans=($<)
  24.                     if ( $ans != 'y' ) then
  25.                       goto ASK
  26.                     else
  27.                       echo "Exiting..."
  28.                        echo "Press Enter to exit this window...  \c"
  29.                       set a = $<
  30.                     endif    
  31.                     exit
  32.                 
  33.     
  34.                 else
  35.                    echo "Installing..."
  36.                        su root -c './InstallIt2'
  37.                 endif    
  38.         else
  39.             if ( $ans == '2' ) then 
  40.             echo "You have selected to Remove RapidApp."
  41.             echo "                     ======"
  42.                         echo "Continue (y/n)?  \c"
  43.                         set ans=($<)
  44.                                 if ( $ans != 'y' ) then
  45.                                   echo "Would you like to exit (y/n)?  \c"
  46.                     set ans=($<)
  47.                                         if ( $ans != 'y' ) then
  48.                                           goto ASK
  49.                                         else
  50.                                           echo "Exiting..."
  51.                                           echo "Press Enter to exit this window...  \c" 
  52.                                           set a = $<
  53.                                         endif   
  54.                                         exit
  55.                                 
  56.  
  57.                                 else
  58.                                   echo "Removing..."
  59.  
  60.                   su root -c './RemoveIt2'
  61.                   exit
  62.                 endif
  63.             endif
  64.         endif
  65. goto AGAIN
  66.  
  67.  
  68.