home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
- setenv XFILESEARCHPATH /usr/lib/X11/app-defaults/%N
- cd $DMTOOLSDIR/demos/inventor/dist
- echo "Do you want to install the newer version (y/n)? \c"
- set ans=($<)
- if ( $ans == 'y') then
- inst -f .
- else
- echo "You will need to install the newer versions"
- echo "to run the demos."
- echo "Please try again later."
- echo "Exiting..."
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit 0
- endif
-
-
- INSTALLCHK:
- if ( `versions inventor_eoe | grep "2.1" | wc -l` > 0 ) then
- echo " "
- echo "Done."
- echo " "
- echo "Do you want to run the demo now (y/n)? \c"
- set ans=($<)
- if ( $ans == 'y') then
- rehash
- cd $DMTOOLSDIR/demos/inventor/slotcar/Games
- ./slotcar
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
- endif
- #endif
- else
- echo " "
- echo "It appears that the new inventor files were not installed properly,"
- echo "Try again (y/n)? \c"
- set ans=($<)
- if ( $ans == 'y') then
- cd $DMTOOLSDIR/demos/inventor/dist
- /usr/sbin/inst -f .
- goto INSTALLCHK
- endif
-
- echo " "
- endif
- else
- echo "There is not enough disk space available to install the demo."
- endif
- echo " "
- echo "Press Enter to exit this window... \c"
- set a = $<
-
-