关闭

JIAOBEN

545人阅读 评论(0) 收藏 举报

 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 ****************************************************************

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1383098次
    • 积分:12932
    • 等级:
    • 排名:第1026名
    • 原创:62篇
    • 转载:523篇
    • 译文:1篇
    • 评论:96条