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 "\n${COLOR_RED}      ___           ___           ___                       ___\n"
17 printf "     /  /\\         /  /\\         /  /\\        ___          /  /\\ \n"
18 printf "    /  /:/_       /  /::\\       /  /:/_      /  /\\        /  /::\\ \n"
19 printf "   /  /:/ /\\     /  /:/\\:\\     /  /:/ /\\    /  /:/       /  /:/\\:\\ \n"
20 printf "  /  /:/ /:/_   /  /:/  \\:\\   /  /:/ /::\\  /__/::\\      /  /:/  \\:\\ \n"
21 printf " /__/:/ /:/ /\\ /__/:/ \\__\\:\\ /__/:/ /:/\\:\\ \\__\\/\\:\\__  /__/:/ \\__\\:\\ \n"
22 printf " \\  \\:\\/:/ /:/ \\  \\:\\ /  /:/ \\  \\:\\/:/~/:/    \\  \\:\\/\\ \\  \\:\\ /  /:/ \n"
23 printf "  \\  \\::/ /:/   \\  \\:\\  /:/   \\  \\::/ /:/      \\__\\::/  \\  \\:\\  /:/ \n"
24 printf "   \\  \\:\\/:/     \\  \\:\\/:/     \\__\\/ /:/       /__/:/    \\  \\:\\/:/ \n"
25 printf "    \\  \\::/       \\  \\::/        /__/:/        \\__\\/      \\  \\::/ \n"
26 printf "     \\__\\/         \\__\\/         \\__\\/                     \\__\\/ \n\n${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是安装过程  

posted @ 2019-11-12 13:33  重设代码的天空  阅读(276)  评论(0编辑  收藏  举报