1 Star 0 Fork 0

undefined/CodeCraft-2021

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.sh 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
彼岸花 提交于 2021-03-16 18:54 . changed from ddmm
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenxrTopone/CodeCraft-2021.git
git@gitee.com:chenxrTopone/CodeCraft-2021.git
chenxrTopone
CodeCraft-2021
CodeCraft-2021
master

搜索帮助