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

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