home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 12 / Silicon_Graphics_Developer_Magic_Soft_Dev_812-8101-012.iso / .all / demos / inventor / InstallIt3 < prev    next >
Encoding:
Text File  |  1995-11-20  |  1.6 KB  |  55 lines

  1. #!/bin/csh -f
  2. setenv XFILESEARCHPATH /usr/lib/X11/app-defaults/%N
  3.     cd $DMTOOLSDIR/demos/inventor/dist
  4. echo "Do you want to install the newer version (y/n)?  \c"
  5.                 set ans=($<)
  6.                 if ( $ans == 'y') then
  7.                         inst -f .
  8.         else
  9.             echo "You will need to install the newer versions"
  10.             echo "to run the demos."
  11.             echo "Please try again later."        
  12.             echo "Exiting..."
  13.             echo "Press Enter to exit this window...  \c"
  14.                         set a = $<
  15.                         exit 0
  16.                 endif
  17.  
  18.  
  19. INSTALLCHK:
  20.         if ( `versions inventor_eoe | grep "2.1" | wc -l` > 0 ) then
  21.                 echo " "
  22.                 echo "Done."
  23.                 echo " "
  24.                 echo "Do you want to run the demo now (y/n)?  \c"
  25.                 set ans=($<)
  26.                 if ( $ans == 'y') then
  27.             rehash
  28.                         cd $DMTOOLSDIR/demos/inventor/slotcar/Games
  29.                         ./slotcar 
  30.             echo "Press Enter to exit this window...  \c"
  31.             set a = $<
  32.                         exit
  33.                 endif
  34.                 #endif
  35.         else
  36.                 echo " "
  37.                 echo "It appears that the new inventor files were not installed properly,"
  38.                 echo "Try again (y/n)?  \c"
  39.             set ans=($<)
  40.                     if ( $ans == 'y') then
  41.             cd $DMTOOLSDIR/demos/inventor/dist
  42.             /usr/sbin/inst -f .
  43.             goto INSTALLCHK
  44.         endif    
  45.  
  46.                 echo " "
  47.         endif 
  48. else
  49.         echo "There is not enough disk space available to install the demo."  
  50. endif 
  51. echo " "  
  52. echo "Press Enter to exit this window...  \c"
  53. set a = $<
  54.  
  55.