1 Star 1 Fork 129

淡水煮大鱼 / cppweb

forked from 寻根 / cppweb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
configure 1.48 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
寻根 提交于 2020-09-05 12:22 . cppweb.1.0.0版本
#!/bin/bash
name=`uname`
setup=cppshell/setup
if [ "$name" == "Linux" ]
then
setup=cppshell/setup
else
setup=cppshell/setup.exe
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
if [ -f product/win/lib/openssl/lib/ssl.lib ]
then
cp product/win/lib/openssl/lib/*.dll C:/Windows/System32
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
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'
if [ -f $setup ]
then
$setup && rm $setup
fi
source ~/.bash_profile
if [ -z $SOURCE_HOME ]
then
echo 'export environment variable failed'
exit -1;
fi
echo '5.export environment variable success'
sleep 1
echo '---------------------------------------------'
echo ''
echo '>>> initialize build-essential success'
echo ''
C++
1
https://gitee.com/osed/cppweb.git
git@gitee.com:osed/cppweb.git
osed
cppweb
cppweb
master

搜索帮助

14c37bed 8189591 565d56ea 8189591