1 Star 0 Fork 20

Iterator-er/fakescript

forked from shitfuck/fakescript 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 839 Bytes
一键复制 编辑 原始数据 按行查看 历史
shitfuck 提交于 2015-07-18 09:19 . update
#! /bin/sh
BUILD_FLAG=""
if [ $# == 1 ] && [ $1 == "release" ];then
BUILD_FLAG=" -DREMOD=ON"
fi
cd src/flexbison
flex -o ../flex.cpp flex.l
bison -v -t -d bison.y
mv bison.tab.c ../bison.cpp
mv bison.tab.h ../bison.h
cd ../../
#lib
rm CMakeCache.txt -rf
rm CMakeFiles -rf
rm cmake_install.cmake -rf
rm Makefile -rf
cmake . $BUILD_FLAG
make clean
make -j5
if [ $? -ne 0 ];then
echo "build lib fail"
exit 1
fi
#fake
cd fake
rm CMakeCache.txt -rf
rm CMakeFiles -rf
rm cmake_install.cmake -rf
rm Makefile -rf
cmake . $BUILD_FLAG
make clean
make -j5
if [ $? -ne 0 ];then
echo "build fake fail"
exit 1
fi
cd ..
#luatest
cd luatest
rm CMakeCache.txt -rf
rm CMakeFiles -rf
rm cmake_install.cmake -rf
rm Makefile -rf
cmake . $BUILD_FLAG
make clean
make -j5
if [ $? -ne 0 ];then
echo "build luatest fail"
exit 1
fi
echo "build ok"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/red-tide/fakescript.git
git@gitee.com:red-tide/fakescript.git
red-tide
fakescript
fakescript
master

搜索帮助