1 Star 0 Fork 0

RT-Thread/smart-build

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
env.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
郑茞逍 提交于 2025-01-15 17:57 +08:00 . add: Support "xmake clean" and "pkgs"
#!/bin/bash
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export XMAKE_RCFILES=${script_dir}/tools/scripts/xmake.lua
export RT_XMAKE_LINK_TYPE="static"
# Check whether unzip is installed.
if ! command -v unzip &> /dev/null; then
echo "Unzip is not installed. Installing unzip"
# Automatically install unzip according to package manager
if [[ -n $(command -v apt-get) ]]; then
sudo apt-get update
sudo apt-get install -y unzip
elif [[ -n $(command -v yum) ]]; then
sudo yum install -y unzip
elif [[ -n $(command -v dnf) ]]; then
sudo dnf install -y unzip
elif [[ -n $(command -v pacman) ]]; then
sudo pacman -Sy --noconfirm unzip
else
echo "Unrecognized package manager, please install unzip manually."
exit 1
fi
echo "Unzip has been successfully installed."
echo "smart-build env ready!"
else
echo "smart-build env ready!"
fi
export PATH=`python3 -m site --user-base`/bin:$HOME/.env/tools/scripts:$PATH
export RTT_EXEC_PATH=/usr/bin
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rtthread/smart-build.git
git@gitee.com:rtthread/smart-build.git
rtthread
smart-build
smart-build
main

搜索帮助