JIAOBEN

 if (ls platform-uep_*.zip) >/dev/null 2>&1;then        
            ### 解压

            ls platform-uep_*.zip | xargs -n1 unzip -o -d $INSTALL_PATH | tee -a $INSTALL_PATH/install.log | progress

            ### 根据cpu类型,解压jdk-solaris
            solaris_x86=false;
            case "`uname -a`" in
                *i86pc*)
                    solaris_x86=true
                    ;;
            esac

            if $solaris_x86 ; then
                if [ "$LANGUAGE" = "zh_CN" ]; then
                    echo  '正在解包 jdk-solaris-x86.tar ... ...'
                    echo  '正在解包 jdk-solaris-x86.tar ... ...' >> $INSTALL_PATH/install.log
                else
                    echo  'Unpacking jdk-solaris-x86.tar ... ...'
                    echo  'Unpacking jdk-solaris-x86.tar ... ...' >> $INSTALL_PATH/install.log
                fi             
                cd $INSTALL_PATH/jdk-solaris
                tar xvf jdk-solaris-x86.tar | progress
                cp haha01-jdk-solaris-x86_versiondependences.veil haha01-jdk-solaris-x86_versiondependences.xml
                rm haha01-jdk-solaris-x86_versiondependences.veil
                cd $HOME_DIR
               
                ### 

                mkdir -p $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris/
                mv $INSTALL_PATH/jdk-solaris/jdk-solaris-x86.tar $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris/
                cp $INSTALL_PATH/jdk-solaris/haha01-jdk-solaris-x86_versiondependences.xml $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris/haha01-jdk-solaris-x86_versiondependences.xml
                cd $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris
                tar xvf jdk-solaris-x86.tar | progress
                rm jdk-solaris-x86.tar
                cd $HOME_DIR
            else
                if [ "$LANGUAGE" = "zh_CN" ]; then
                    echo  '正在解包 jdk-solaris.tar ... ...'
                    echo  '正在解包 jdk-solaris.tar ... ...' >> $INSTALL_PATH/install.log
                else
                    echo  'Unpacking jdk-solaris.tar ... ...'
                    echo  'Unpacking jdk-solaris.tar ... ...' >> $INSTALL_PATH/install.log
                fi             
                cd $INSTALL_PATH/jdk-solaris
                tar xvf jdk-solaris.tar | progress
                cp haha01-jdk-solaris_versiondependences.veil haha01-jdk-solaris_versiondependences.xml
                rm haha01-jdk-solaris_versiondependences.veil
                cd $HOME_DIR

                ### 复

                mkdir -p $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris/
                mv $INSTALL_PATH/jdk-solaris/jdk-solaris.tar $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris/
                cp $INSTALL_PATH/jdk-solaris/haha01-jdk-solaris_versiondependences.xml $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris/haha01-jdk-solaris_versiondependences.xml
                cd $INSTALL_PATH/upgradeZZZ/common/jdk/jdk-solaris
                tar xvf jdk-solaris.tar | progress
                rm jdk-solaris.tar
                cd $HOME_DIR
            fi


        else
            if [ "$LANGUAGE" = "zh_CN" ]; then
                echo  '*** 安装失败! 包platform-uep_*.zip! ***'
                echo  '*** 安装失败! 包platform-uep_*.zip! ***' >> $INSTALL_PATH/install.log
            else
                echo  '*** Error! Can NOT find platform-uep_*.zip! ***'
                echo  '*** Error! Can NOT find platform-uep_*.zip! ***' >> $INSTALL_PATH/install.log
            fi             
            exit 1
        fi
        ### platform-uep END ****************************************************************

阅读更多
文章标签: solaris x86 path
上一篇linux下的拷贝(cp)、删除(rm)、剪切(mv)命令
下一篇shell if else
想对作者说点什么? 我来说一句

2003 iis 同步

2012年10月10日 653B 下载

linux jiaoben

2010年01月03日 23B 下载

com jiaoben

2011年10月09日 519KB 下载

loadrunner jiaoben

2010年01月16日 2.05MB 下载

shell脚本+ant脚本

2011年03月22日 216KB 下载

步步高vivo官网幻灯片代码

2014年12月12日 3.67MB 下载

没有更多推荐了,返回首页

关闭
关闭