该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#!/bin/sh
#
# Name:
# install – script file for invoking the Multi-platform installer on Linux.
#
# Usage: install [-h|help]
# [-javadir ] | [-root ] |
# [-test] | [-v|-verbose]
# -h|-help – Display arguments.
# -test – Don’t actually run the java
# command (only useful with -v).
# -v|-verbose – Display settings.
# -javadir – Override default java root directory.
# -root – Override default DVD root directory.
# -tmpdir – Override default directory for temporary files.
#
# The default settings when no override inputs are supplied are:
# -root =
# -javadir = /sys/java/jre/$ARCH/jre
# -tmpdir = /tmp
#
#
# Copyright 2009-2012 The MathWorks, Inc.
#__________________________________________________________________________
#
arg0_=$0
#
#
trap “exit 1” 1 2 3 15
#
#========================= java_launcher (start) ============================
#
#========================= archlist.sh (start) ============================
#
# usage: archlist.sh
#
# abstract: This Bourne Shell script creates the variable ARCH_LIST.
#
# note(s): 1. This file is always imbedded in another script
#
# Copyright 1997-2007 The MathWorks, Inc.
# $Revision: 1.1.6.3 $ $Date: 2007/11/12 22:52:47 $
#—————————————————————————-
#
ARCH_LIST=’glnx86 glnxa64 mac maci maci64 sol2 sol64′
#=======================================================================
# Functions:
# check_archlist ()
#=======================================================================
check_archlist () { # Sets ARCH. If first argument contains a valid
# arch then ARCH is set to that value else
# an empty string. If there is a second argument
# do not output any warning message. The most
# common forms of the first argument are:
#
# ARCH=arch
# MATLAB_ARCH=arch
# argument=-arch
#
# Always returns a 0 status.
#
# usage: check_archlist arch=[-]value [noprint]
#
if [ $# -gt 0 ]; then
arch_in=`expr “$1” : ‘.*=.?‘`
if [ “$arch_in” != “” ]; then
ARCH=`echo “$ARCH_LIST EOF $arch_in” | awk ‘
#———————————————————————–
{ for (i = 1; i
if ($i == “EOF”)
narch = i – 1
for (i = 1; i
if ($i == $NF || “-” $i == $NF) {
print $i
exit
}
}’`
#———————————————————————–
if [ “$ARCH” = “” -a $# -eq 1 ]; then
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo ‘ ‘
echo ” Warning: $1 does not specify a valid architecture – ignored . . .”
echo ‘ ‘
#+++++++++++++++++++++++++
文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门在线安装软件25104 人正在系统学习中 相关资源:南 2013计量自动化上行规约调试软件-互联 文档类资源-CSDN文库
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!