检查
compile_check.sh:
source ./compile_liboath.sh # 引入compile_liboath.sh脚本
source ./compile_zookeeper.sh # 引入compile_zookeeper.sh脚本
source ./compile_client.sh # 引入compile_client.sh脚本
source ./compile_server.sh # 引入compile_server.sh脚本
set "-e"
function main()
{
cd /home
compile_liboath_check # 检查liboath
compile_zookeeper_check # 检查zookeeper
compile_client_check # 检查client
compile_server_check # 检查server
}
main
进行编译检查:
sh compile_check.sh
父主题: 使用示例