JIAOBEN

转载 2011年01月24日 20:20:00

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

linux jiaoben

  • 2010年01月03日 01:17
  • 23B
  • 下载

翻书效果jiaoben2304

  • 2016年04月26日 11:29
  • 1.06MB
  • 下载

loadrunner jiaoben

  • 2010年01月16日 22:56
  • 2.05MB
  • 下载

jiaoben3028

  • 2015年03月02日 16:58
  • 343KB
  • 下载

jiaoben3254.rar

  • 2015年06月16日 15:25
  • 304KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:JIAOBEN
举报原因:
原因补充:

(最多只允许输入30个字)