代码拉取完成,页面将自动刷新
同步操作将从 厦门小葱网络科技有限公司/GPush 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
# yum install git
# yum instal cmake
# yum group install "Development Tools"
base_dir=`pwd`
#1. first install third party lib
echo "install third party lib..."
cd third_party && sh ./build.sh > third_party.log 2>&1
source ${HOME}/.bash_profile
#2. compile efnfw and common lib
find ./ -name "*.sh"| xargs chmod u+x
echo "Compiling efnfw lib ......"
cd ${base_dir}/efnfw && sh ./build.sh > efnfw_compile.log 2>&1
file="${base_dir}/efnfw/lib/libefnfw.a"
if [ ! -f "$file" ]; then
echo "Compile efnfw lib faield. pls check efnfw_compile.log"
exit 0
fi
echo "Compile libefnfw.a succeed!"
echo "Compiling common lib ......"
cd ${base_dir}/common && sh ./build.sh > common_compile.log 2>&1
file="${base_dir}/common/lib/libcommon.a"
if [ ! -f "$file" ]; then
echo "Compile common lib faield. pls check common_compile.log"
exit 0
fi
echo "Compile libcommon.a succeed."
#3. install efnfw and common lib
#4. compile connect server
cd ${base_dir}/connect_server && sh ./build.sh > connect_server.log 2>&1
file="${base_dir}/connect_server/bin/CServer"
if [ ! -f "$file" ]; then
echo "Compile connect_server faield. pls check connect_server.log"
exit 0
fi
echo "Compile connect_server succeed."
#5. compile push_server
cd ${base_dir}/push_server && sh ./build.sh > push_server.log 2>&1
file="${base_dir}/push_server/bin/PushServer"
if [ ! -f "$file" ]; then
echo "Compile push_server faield. pls check push_server.log"
exit 0
fi
echo "Compile push server succeed."
#6. test client
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。