开始贴源码
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是安装过程