代码拉取完成,页面将自动刷新
#!/bin/bash
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")
cd $BASEDIR
if [ ! -d CodeCraft-2021 ]
then
echo "ERROR: $BASEDIR is not a valid directory of SDK_C++ for CodeCraft-2021."
echo " Please run this script in a regular directory of SDK_C++."
exit -1
fi
cmake --version 2>&1
tmp=$?
if [ ${tmp} -ne 0 ]
then
echo "ERROR: You should install cmake(2.8 or later) first."
echo " Please goto https://cmake.org to download and install it."
exit
fi
rm -fr bin
mkdir bin
rm -fr build
mkdir build
cd build
cmake ../CodeCraft-2021
tmp=$?
echo "cmake return:" ${tmp}
if [ ${tmp} -ne 0 ]
then
echo "cmake <>return:" ${tmp}
exit -1
fi
make
tmp=$?
echo "make return:" ${tmp}
if [ ${tmp} -ne 0 ]
then
echo "make <>return:" ${tmp}
exit -1
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。