当前位置:网站首页>shell if else 使用
shell if else 使用
2022-07-29 11:57:00 【青松0527】
sudo apt-get install libsoil-dev libglm-dev libassimp-dev libglew-dev libglfw3-dev libxinerama-dev libxcursor-dev libxi-dev libfreetype6-dev
sudo apt-get install g++ git
ordir=$(pwd)
echo $ordir
dir=$(cd '../../'; pwd)
dir2=$dir/opengl-demo
#echo $dir2
if [ ! -d "$dir2" ]
then
echo "no exit opengl-demo"
cd $ordir
cd ../
mkdir build_opengl_function_demo
cd build_opengl_function_demo
cmake ../opengl_function_demo
make -j4
#mkdir temp
cp ../LearnOpenGL3.3/configure.sh ./
echo -e "\nbuild finish..............."
echo "go to ../build_opengl_function_demo and start run test case"
#echo "1. source configure.sh"
echo " cd bin/ start run your case"
else
cd ../../
mkdir build_opengl_function_demo
cd build_opengl_function_demo
cmake ../opengl-demo/opengl_function_demo
make -j4
#mkdir temp
cp ../opengl-demo/LearnOpenGL3.3/configure.sh ./
echo -e "\nbuild finish..............."
echo "go to ../../build_opengl_function_demo and start run test case"
#echo "1. source configure.sh"
echo " cd bin/ start run your case"
fi
shell 中 条件判断的使用和自定义变量
边栏推荐
- LED透明屏和LED玻璃显示屏区别
- Based article 】 【 learn with Rust | Rust, variables and data types
- DAY 27 daily SQL clock 】 【 丨 within a specified period of time all order products [difficult simple]
- 路径依赖 - 偶然决策导致的依赖。
- SQL clock in daily DAY 23 丨 】 the number of students have different subjects to test difficulty simple 】 【
- c语言:来实现一个小程序n子棋(已五子棋为例)
- PHP 基础知识
- Collections.singletonList(T o)
- 【无标题】
- SQL clock 】 【 daily DAY 21 丨 report the state of the system date of continuous difficulty difficult 】 【
猜你喜欢
随机推荐
Insights into the development of the enterprise live broadcast industry in 2022
PHP uedtior报错 errorHandler is not defined
QCon大会广州站它来了!独家定制双肩背包等你领取!
解决 Chrome 浏览器被毒霸篡改问题
【表达式计算】表达式计算问题的通用解法(练习加强版,含总结)
Learning with Recoverable Forgetting阅读心得
365 days challenge LeetCode1000 topic - Day 043 square mathematics effectively
DAY 24 daily SQL clock 】 【 丨 find the beginning and end of the continuum digital difficulty moderate 】 【
2.1 Bubble sort (mercifully Sorting)
365天挑战LeetCode1000题——Day 043 有效的正方形 数学
WordPress 版本更新
DNS protocol, ICMP protocol, NAT technology
WordPress 主题和插件
精通音视频开发是真的可以为所欲为
WordPress 固定链接设置
报表查询字段集sql摘记
1.4, stack
惠及6亿人 投资98亿 沿江高铁武宜段最新进展来了!
Recursion - Eight Queens Problem
Codeforces Round #797 (Div. 3)个人题解