INSTALL.DOC

(26 KB) Pobierz
#!/bin/csh -f
#---------------------------------------------------------------------------
#***************************************************************************
#
#           COPYRIGHT (c) 1992-1999 by Mechanical Dynamics, Inc.
#       This software has been provided pursuant to a License Agreement
#       containing restrictions on its use.  This software contains
#       valuable trade secrets and proprietary information of
#       Mechanical Dynamics, Inc. and is protected by law.  It may
#       not be copied or distributed in any form or medium, disclosed
#       to third parties, reverse engineered or used in any manner not
#       provided for in said License Agreement except with the prior
#       written authorization from Mechanical Dynamics, Inc.
#
#***************************************************************************
# INSTALL.DOC -
#
# A c-shell script to install all ADAMS demos and on-line documentation
# for a given platform.
#
# Modified:
#  Modified: 09 Jul 99 by E. Waltersdorf for 10.0
#  Modified: 26 May 98 by E. Waltersdorf for  9.1
#  Created:   5 May 97 by C. Wilson
#---------------------------------------------------------------------------
#
  onintr XIT
  set nonomatch
  set ignoreof
  unset noglob
  set null
  umask 022
#--------------------------------------------------------------------------
# Debugging variables.  Setting these externally will turn on echo,
# and verify.
#--------------------------------------------------------------------------
  if ($?SRG_ECHO) set echo 
  if ($?SRG_VERIFY) set verify 
#--------------------------------------------------------------------------

  set remote
  set cdmnt
  set license_created = true
  set upper_case = 0
  set lower_case = 0
  set inst_html  = "n"
  set html_long = 'ADAMS HTML On-line Documentation'
  set html_size = 28
  set inst_pdf   = "n"
  set pdf_long = 'ADAMS PDF On-line Documentation'
  set pdf_size = 103
  set inst_demos = "n"
  set demo_long = 'ADAMS Demonstration Files'
  set demo_size = 145

#---------------------------------------------------------------------
# Initialize Some Important Variables - must come before machine type.
#---------------------------------------------------------------------
  set pwd = `dirs -l` 
  pwd | grep release >& /dev/null
  if (($status == 0) && ($?SRG_DIR)) then
    setenv srg_development ""
  endif

  set update
  set skip_prods    = "false"

#---------------------------------------------------------
# Determine machine type
#---------------------------------------------------------

set uname = `uname -s`
set unamem = `uname -m`
set unamer = `uname -r`
if ($uname =~ IRIX* ) then
   set kernel = `file /unix | awk '{print $5}'`
else
   set kernel
endif

#######################################################################################
# HP 9000/7xx,8xx - HPUX10
 if (("$unamem" =~ 9000/7* || "$unamem" =~ 9000/8*) && ("$unamer" =~ B.10.*)) then
   set platform = "hpux10"

#######################################################################################
# HP 9000/7xx,8xx - HPUX11
 else if (("$unamem" =~ 9000/7* || "$unamem" =~ 9000/8*) && ("$unamer" =~ B.11.*)) then
   set platform = "hpux11"

########################################################################
#  SGI  32-bit IRIX 5.3 6.2, 6.3
 else if ("$uname" == "IRIX"   && ("$unamer" =~  6.* ) || \
         ("$uname" == "IRIX64" && ("$kernel" == "mips-3")) ) then
   set platform = "irix32"

###############################################
# SGI  64-bit IRIX 6.1, 6.2, 6.3
  else if ("$uname" == "IRIX64" && \
          "$kernel" == "mips-4" ) then
   set platform = "irix64"

###############################################
# SunOS 5.x UltraSPARC
 else if ("$uname" == "SunOS" && "$unamem" == "sun4u" ) then
   set platform = "ultra"

###############################################
# SunOS 5.x
 else if ("$uname" == "SunOS" && "$unamer" =~ 5.*) then
   set platform = "solaris"

###############################################
# IBM RS/6000
 else if ("$uname" == "AIX") then
   set platform = "ibmrs"

###############################################
# UNKNOWN
 else
   set platform = "unknown"
 endif
###############################################



#--------------------------------------------------------
# Default Product Sets, and tar/dd block size
# Can be overwritten at each platform
#--------------------------------------------------------
 set tar_block     = "20"
 set dd_block      = "ibs=20b"

#---------------------------------------------------------
# Set platform vars
#---------------------------------------------------------
 switch ($platform)
    case hpux11:
         setenv MDI_CPU     "hpux11"
         setenv MDI_TAR     "HPUX11"
         set dev_type     = "NO-REWIND"
         set rsh_cmd      = "remsh"
         set rcp_cmd      = "rcp -r"
         set cpr_cmd      = "cp -r"
         set ready_cmd    = "/bin/mt -t"
         set ready_flag   = "rewind"
         set move_flag    = "fsf 1"
         set rewind_cmd   = "/bin/mt -t"
         set rewind_flag  = "rewind"
         set tar_cmd      = "tar xvof"
         set tar_blk      = "" 
         set default_dev  = "/dev/rmt/0mn"
         set dd_cmd       = "dd"
         set dd_flag      = "if"
         set dd_tar_cmd   = "tar xvofb"
         set rpipe_tar    = "tar xvof"
         set lpipe_tar    = "tar cf"
         set WHOAMI       = `/usr/bin/whoami`
         set CHMOD        = "chmod -R"
         set MKDIR        = "mkdir -p"
         set DF           = "bdf"
         breaksw
    case hpux10:
         setenv MDI_CPU     "hpux10"
         setenv MDI_TAR     "HPUX10"
         set dev_type     = "NO-REWIND"
         set rsh_cmd      = "remsh"
         set rcp_cmd      = "rcp -r"
         set cpr_cmd      = "cp -r"
         set ready_cmd    = "/bin/mt -t"
         set ready_flag   = "rewind"
         set move_flag    = "fsf 1"
         set rewind_cmd   = "/bin/mt -t"
         set rewind_flag  = "rewind"
         set tar_cmd      = "tar xvof"
         set tar_blk      = "" 
         set default_dev  = "/dev/rmt/0mn"
         set dd_cmd       = "dd"
         set dd_flag      = "if"
         set dd_tar_cmd   = "tar xvofb"
         set rpipe_tar    = "tar xvof"
         set lpipe_tar    = "tar cf"
         set WHOAMI       = `/usr/bin/whoami`
         set CHMOD        = "chmod -R"
         set MKDIR        = "mkdir -p"
         set DF           = "bdf"
         breaksw
    case irix32:
         setenv MDI_CPU     "irix32"
         setenv MDI_TAR     "IRIX32"
         set dev_type     = "NO-REWIND"
         set rsh_cmd      = "rsh"
         set rcp_cmd      = "rcp -r"
         set cpr_cmd      = "cp -r"
         set ready_cmd    = "/bin/mt -t"
         set ready_flag   = "exist"
         set move_flag    = "fsf 1"
         set rewind_cmd   = "/bin/mt -t"
         set rewind_flag  = "rewind"
         set tar_cmd      = "tar xvof"
         set tar_blk      = "" 
         set default_dev  = "/dev/nrtape"
         set dd_cmd       = "dd"
         set dd_flag      = "if"
         set dd_tar_cmd   = "tar xBvofb"
         set rpipe_tar    = "tar xBvof"
         set lpipe_tar    = "tar cf"
         set WHOAMI       = `/usr/bin/whoami`
         set CHMOD        = "chmod -R"
         set MKDIR        = "mkdir -p"
         set DF           = "df -k"
         breaksw
    case irix64:
         setenv MDI_CPU     "irix64"
         setenv MDI_TAR     "IRIX64"
         set dev_type     = "NO-REWIND"
         set rsh_cmd      = "rsh"
         set rcp_cmd      = "rcp -r"
         set cpr_cmd      = "cp -r"
         set ready_cmd    = "/bin/mt -t"
         set ready_flag   = "exist"
         set move_flag    = "fsf 1"
         set rewind_cmd   = "/bin/mt -t"
         set rewind_flag  = "rewind"
         set tar_cmd      = "tar xvof"
         set tar_blk      = ""
         set default_dev  = "/dev/nrtape"
         set dd_cmd       = "dd"
         set dd_flag      = "if"
         set dd_tar_cmd   = "tar xBvofb"
         set rpipe_tar    = "tar xBvof"
         set lpipe_tar    = "tar cf"
         set WHOAMI       = `/usr/bin/whoami`
         set CHMOD        = "chmod -R"
         set MKDIR        = "mkdir -p"
         set DF           = "df -k"
         breaksw
    case ultra:
         setenv MDI_CPU     "ultra"
         setenv MDI_TAR     "SUNULTRA"
         set dev_type     = "NO-REWIND"
         set rsh_cmd      = "rsh"
         set rcp_cmd      = "rcp -r"
         set cpr_cmd      = "cp -r"
         set ready_cmd    = "mt -f"
         set ready_flag   = "status"
         set move_flag    = "fsf 1"
         set rewind_cmd   = "mt -f"
         set rewind_flag  = "rewind"
         set default_dev  = "/dev/nrst0"
         set tar_cmd      = "tar xvof"
         set tar_blk      = ""
         set dd_cmd       = "dd"
         set dd_flag      = "if"
         set dd_tar_cmd   = "tar xBvofb"
         set rpipe_tar    = "tar xBvof"
         set lpipe_tar    = "tar cf"
         set WHOAMI       = `/usr/ucb/whoami`
         set CHMOD        = "chmod -R"
         set MKDIR        = "mkdir -p"
         set DF           = "df -k"
         breaksw
    case solaris:
         setenv MDI_CPU     "solaris"
         setenv MDI_TAR     "SUNSPARC"
         set dev_type     = "NO-REWIND"
         set rsh_cmd      = "rsh"
         set rcp_cmd      = "rcp -r"
         set cpr_cmd      = "cp -r"
         set ready_cmd    = "mt -f"
         set ready_flag   = "status"
         set move_flag    = "fsf 1"
         set rewind_cmd   = "mt -f"
         set rewind_flag  = "rewind"
         set default_dev  = "/dev/nrst0"
         set tar_cmd      = "tar xvof"
         set tar_blk      = "" 
         set dd_cmd       = "dd"
         set dd_flag      = "if"
         set dd_tar_cmd   = "tar x...
Zgłoś jeśli naruszono regulamin