代码拉取完成,页面将自动刷新
同步操作将从 寻根/cppweb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
name=`uname`
setup=cppshell/setup
if [ "$name" == "Linux" ]
then
setup=cppshell/setup
else
setup=cppshell/setup.exe
if [ `pwd | wc -w` -gt 1 ]
then
echo 'current path has space character'
exit -1
fi
fi
echo 'initialize configure'
echo '---------------------------------------------'
if [ -d C:/Windows/System32 ]
then
mkdir -p product/win/lib
mkdir -p product/win/dll
mkdir -p product/win/bin
gccpath=`pwd`/product/win/gcc/bin
if [ -d $gccpath ]
then
if [ `which g++ 2> /dev/null | wc -l` -eq 0 ]
then
export PATH=$PATH:$gccpath
fi
fi
if [ -f product/win/lib/openssl/lib/ssl.lib ]
then
echo '1.check openssl success'
else
echo 'please install openssl first'
exit -1
fi
else
mkdir -p product/lib
mkdir -p product/dll
mkdir -p product/bin
if [ `which openssl 2> /dev/null | wc -l` -eq 0 ]
then
echo 'please install openssl first'
exit -1
else
echo '1.check openssl success'
fi
fi
if [ -f cppshell/setup.cpp ]
then
rm -rf $setup
g++ -std=c++11 cppshell/setup.cpp -o $setup
if [ -f $setup ]
then
$setup
else
echo "compiler don't support c++11"
exit -1
fi
echo '2.check g++ compiler success'
else
echo '2.skip g++ compiler check'
fi
if [ `which javac 2> /dev/null | wc -l` -gt 0 ]
then
echo '3.check java compiler success'
else
echo '3.skip java module initialize'
fi
echo '4.create product directory success'
export CPPWEB_INSTALL_HOME=`pwd`
source .webprofile
sleep 1
echo '---------------------------------------------'
echo '>>> initialize build-essential success'
echo ''
sleep 1
if [ "$1" = "rebuild" ]
then
make clean
echo ''
fi
echo '*** wait few minutes for compiling ***'
echo ''
sleep 1
make
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。