setup:
………………………………………………………………
#! /bin/csh -f
set cmd = $0
set setup_dir = $cmd:h
set my_cwd = $cwd
cd $setup_dir
set setup_dir = $cwd
cd $my_cwd
if ( "$setup_dir" == "$my_cwd" ) then
echo "***ERROR. The installation should not be executed from "
echo " the directory that contains the setup files."
echo " Please change your current working directory and"
echo " rerun the installation."
exit 1
endif
#cwd is default installation directory
if ( `echo $my_cwd | grep -c ^\/` && -d $my_cwd ) setenv IA_CWD $my_cwd
if ( ! $?DISPLAY ) then
echo ""
echo "In order to run the installation GUIs, the environment variable"
echo "DISPLAY must be set. Please set DISPLAY as desired and run this"
echo "setup script again."
echo ""
exit 1
endif
set plat_temp = `uname -a`
if ( `echo $plat_temp | grep -ic hp-ux` ) then
echo "***WARNING: Special patches to support RockRidge extensions may be required to "
echo " successfully read the data from this CD. (Failure to read the data "
echo " properly may result in an error message indicating that Java"
echo " libraries could not be found.) Depot files that contain the patches to "
echo " resolve this issue have been included on the ABAQUS Product and "
echo " Licensing CD for HP-UX in the file hp_mount.tar. "
echo ""
echo " This issue has been documented as bug number v64_516 and ABAQUS "
echo " answer ID number 950. Please refer to this documentation for more "
echo " information. "
echo ""
echo "Hit <ENTER> to continue with the installation."
echo ""
set response = $<
endif
if ( `echo $plat_temp| grep -ic aix ` ) then
set plat = 'ibm'
else if ( `echo $plat_temp| grep -ic OSF`) then
set plat = 'u_alpha'
else if ( `echo $plat_temp| grep -ic irix `) then
set plat = 'origin2000'
else if ( `echo $plat_temp| grep -ic linux`) then
set plat = 'linux32'
else if ( `echo $plat_temp| grep -ic hp-ux`) then
set plat = 'hp64'
else
echo ""
echo "lease choose the platform to install:"
echo " 1. Compaq Tru64 5.1"
echo " 2. IBM AIX 5.1"
echo " 3. SGI IRIX 6.5"
echo " 4. Intel Pentium Linux"
echo " 5. HP-UX 11 "
echo ""
echo -n 'Provide number associated with selection: '
set ans = $<
if ( $ans == "1" ) then
set plat = 'u_alpha'
else if ( $ans == "2" ) then
set plat = 'ibm'
else if ( $ans == "3" ) then
set plat = 'origin2000'
else if ( $ans == "4" ) then
set plat = 'linux32'
else if ( $ans == "5" ) then
set plat = 'hp64'
else
echo "***ERROR\! Option $ans is invalid."
exit 1
endif
endif
set path = ( $setup_dir/JVM/$plat/jre/bin $path )
setenv ABAQUS_PLAT "$plat"
if ($plat == "hp64" ) then
if ( ! -e $setup_dir/UNIX/install.bin ) then
echo "***ERROR: $setup_dir/UNIX/install.bin not found."
echo " Please ensure that you have mounted the installation CD"
echo " with the correct mount command, which is:"
echo " mount -rt cdfs device /cdrom "
echo " where device is the CD-ROM device on your system. Also,"
echo " make sure that the cdcase option has not been included"
echo " in your mount command in the sytem file /etc/fstab."
echo ""
exit 1
endif
endif
if ( ! -e $setup_dir/JVM/$plat/jre/bin ) then
echo "***ERROR: $setup_dir/JVM/$plat/jre/bin not found"
exit 1
else if ( ! -e $setup_dir/UNIX/install.bin ) then
echo "***ERROR: $setup_dir/UNIX/install.bin not found"
exit 1
endif
#Compaq JVM is too verbose
if ( $plat == "u_alpha" ) then
set status = `$setup_dir/UNIX/install.bin >& /dev/null`
else
set status = `$setup_dir/UNIX/install.bin `
endif