home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
-
- setenv XUSERFILESEARCHPATH "/usr/lib/X11/app-defaults/%N"
- set MYAPP=rapidapp
- set CD_PATH=$DMTOOLSDIR/demos/RapidApp
- set KBYTES_REQ=9856
- set INST_DIR=RapidApp
- if (`/sbin/uname -r | cut -c1,3` <= 52) then
- echo "You must be running an operating system of 5.3 or"
- echo "greater to install this demo"
- echo "...exiting"
- echo " "
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
-
- else
- endif
-
- endif
-
- if ( `versions RapidApp | grep RapidApp | wc -l` > 0 ) then
- echo "It appears that RapidApp is already installed."
- echo "Would you like to install it anyway (y/n) \c"
- set ans=($<)
- if ( $ans != 'y' ) then
- echo "Bye..."
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
- endif
- endif
-
- set TEST_NEW=`df -k /usr | /usr/bin/awk '{print $7}'`
-
- if ( "$TEST_NEW" == "Mounted /" ) then
- set FILE_STRUCTURE=new
- else
- set FILE_STRUCTURE=old
- endif
-
- if ( $KBYTES_REQ < 1000 ) then
- set MBYTES_REQ=1
- else
- @ MBYTES_REQ = ($KBYTES_REQ) / 1000
- endif
-
- if ( $FILE_STRUCTURE == "new" ) then
- set KBYTES_AVAIL=`df -k / | /bin/grep / | /usr/bin/awk '{print $5}'`
- else
- set KBYTES_AVAIL=`df -k /usr | /bin/grep /usr | /usr/bin/awk '{print $5}'`
- endif
-
- if ( $KBYTES_AVAIL < $KBYTES_REQ ) then
- echo "This demo requires $MBYTES_REQ Mbytes of disk space."
- echo "You do not have enough space to install RapidApp."
- echo "Exiting..."
- echo "Bye."
- sleep 3
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
-
-
- else
- echo " "
- echo "This demo requires $MBYTES_REQ Mbytes of disk space."
- echo "RapidApp will be installed in a directory named /usr/sbin."
- echo "Continue (y/n)? \c"
- set ans=($<)
- if ( $ans != 'y' ) then
- echo " "
- echo "... Bye."
- sleep 3
- exit
- endif
- else
- echo " "
- endif
- endif
-
- echo " "
- echo "Installing RapidApp. Please wait..."
-
- echo " "
- echo " "
- echo " "
- echo "To install RapidApp, at the inst prompt type; go <enter>"
- echo "When installation has completed type; quit <enter> "
- echo " "
- echo "If you have problems with the installation try; step <enter>"
- echo "And resolve any conflicts that may exist. "
-
- cd $CD_PATH
- inst -f .
- echo " "
- echo "Done."
- echo ""
- echo ""
- echo "Do you want to get a temporary license now (y/n)? \c"
- set ans=($<)
- if ( $ans == 'y') then
- rehash
- cd
- jot -fv $DMTOOLSDIR/demos/keyra
- if ( `versions netls_eoe | grep "netls_eoe.sw.netls_eoe" | wc -l` == 0 ) then
- echo "It appears that netls is not currently installed on this machine."
- echo "You will need to install netls_eoe to properly install"
- echo "your temporary licenses."
- endif
- echo ""
- echo "Note: You will need to install the license keys"
- echo "before you can run the demos."
- echo ""
- echo ""
- endif
- echo "To view the temporary license later,"
- echo "move to $DMTOOLSDIR/demos directory"
- echo "and type;"
- echo "jot ./keyra"
- echo ""
- echo ""
-
-
- echo "Would you like to run the demo now (y/n)? \c"
- set ans=($<)
- if ( $ans != 'y' ) then
- echo "Bye..."
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
-
- else
- cd
- rehash
-
- /usr/bin/X11/xconfirm -icon info \
- -t " " \
- -t "For some extra help, check out the on-line tutorial\!" \
- -t " " \
- -b Ok
-
- /usr/sbin/rapidapp
- endif
- else
- echo "There is not enough disk space available to install the demo."
- endif
-
- echo "Press Enter to exit this window... \c"
- set a = $<
- exit
-