home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
- set APP_NAME=Netscape
- set PGM_NAME=netscape
- set INST_PATH=/usr/bin/X11/netscape
- set KBYTES_REQ=8000
- if ( $KBYTES_REQ < 1000 ) then
- set MBYTES_REQ=1
- else
- @ MBYTES_REQ = ($KBYTES_REQ) / 1000
- endif
- set KBYTES_AVAIL=`df -k /usr | tail -1 | /usr/bin/awk '{print $5}'`
- echo "The demo requires $MBYTES_REQ Mbytes of disk space."
- echo " "
- if ( $KBYTES_AVAIL > $KBYTES_REQ ) then
- echo "It will be installed in a directory named $INST_PATH."
- echo "Continue with installation (y/n)? \c"
- set ans=($<)
- if ( $ans != 'y' ) then
- echo " "
- echo "... Bye."
- sleep 2
- exit
- endif
- echo " "
- echo "At the 'Inst>' prompt, type 'go' and press 'enter'."
- echo "When installation is complete, type 'quit' and press 'enter'."
- echo " "
- cd $HOTMIXDIR/demos/netscape/dist
- /usr/sbin/swmgr -V background:false -V custom_startup_mode:always -f ./netscape
- INSTALLCHK:
- if ( `versions netscape | grep "Netscape" | wc -l` > 0 ) then
- echo " "
- echo "Done."
- echo " "
- echo "To run the demo, move to the $INST_PATH directory"
- echo "and execute $PGM_NAME."
- echo "View the README and relnotes files for documentation and"
- echo "execution details."
- echo " "
- echo " "
- echo "Do you want to run the demo now (y/n)? \c"
- set ans=($<)
- if ( $ans == 'y') then
- rehash
- cd
- netscape
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
- endif
- #endif
- else
- echo " "
- echo "Netscape was not installed properly,"
- echo "Try again (y/n)? \c"
- set ans=($<)
- if ( $ans == 'y') then
- cd $HOTMIXDIR/demos/netscape/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 = $<
-
-