• eosio_install.sh执行过程


    开始贴源码

     1 # Ensure we're in the repo root and not inside of scripts
     2 cd $( dirname "${BASH_SOURCE[0]}" )/..
     3 
     4 # Load eosio specific helper functions
     5 . ./scripts/helpers/eosio.sh
     6 
     7 [[ ! $NAME == "Ubuntu" ]] && set -i # Ubuntu doesn't support interactive mode since it uses dash
     8 
     9 [[ ! -f ${BUILD_DIR}/CMakeCache.txt ]] && printf "${COLOR_RED}Please run ${SCRIPT_DIR}/eosio_build.sh first!${COLOR_NC}" && exit 1
    10 echo "${COLOR_CYAN}====================================================================================="
    11 echo "========================== ${COLOR_WHITE}Starting EOSIO Installation${COLOR_CYAN} ==============================${COLOR_NC}"
    12 execute cd $BUILD_DIR
    13 execute make install
    14 execute cd ..
    15 
    16 printf "
    ${COLOR_RED}      ___           ___           ___                       ___
    "
    17 printf "     /  /\         /  /\         /  /\        ___          /  /\ 
    "
    18 printf "    /  /:/_       /  /::\       /  /:/_      /  /\        /  /::\ 
    "
    19 printf "   /  /:/ /\     /  /:/\:\     /  /:/ /\    /  /:/       /  /:/\:\ 
    "
    20 printf "  /  /:/ /:/_   /  /:/  \:\   /  /:/ /::\  /__/::\      /  /:/  \:\ 
    "
    21 printf " /__/:/ /:/ /\ /__/:/ \__\:\ /__/:/ /:/\:\ \__\/\:\__  /__/:/ \__\:\ 
    "
    22 printf " \  \:\/:/ /:/ \  \:\ /  /:/ \  \:\/:/~/:/    \  \:\/\ \  \:\ /  /:/ 
    "
    23 printf "  \  \::/ /:/   \  \:\  /:/   \  \::/ /:/      \__\::/  \  \:\  /:/ 
    "
    24 printf "   \  \:\/:/     \  \:\/:/     \__\/ /:/       /__/:/    \  \:\/:/ 
    "
    25 printf "    \  \::/       \  \::/        /__/:/        \__\/      \  \::/ 
    "
    26 printf "     \__\/         \__\/         \__\/                     \__\/ 
    
    ${COLOR_NC}"
    27 
    28 printf "==============================================================================================\n"
    29 printf "${COLOR_GREEN}EOSIO has been installed into ${CACHED_INSTALL_PATH}/bin${COLOR_NC}"
    30 printf "\n${COLOR_YELLOW}Uninstall with: ${SCRIPT_DIR}/eosio_uninstall.sh${COLOR_NC}\n"
    31 printf "==============================================================================================\n\n"
    32 resources

    核心代码只在第13行 make install,也就是对之前build的安装包,依赖包进行make install下。

    整体来讲 build是编译过程,install是安装过程  

  • 相关阅读:
    【日语】日语学习计划(转载)
    【日语】日语商务情景口语
    Nop常用知识点
    c#版在pc端发起微信扫码支付
    nopcommerce 常用属性验证
    @codeforces
    @codeforces
    @codeforces
    @codeforces
    @codeforces
  • 原文地址:https://www.cnblogs.com/wangzxblog/p/11841293.html
Copyright © 2020-2023  润新知