1 Star 0 Fork 12

xuyongliang_01/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
base.sh 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
NiuTao 提交于 2023-06-17 10:41 . fix: fix eulermaker build error
#!/bin/bash
ROOT=`pwd`
ROS_DISTRO=`grep ROS_DISTRO config | cut -d'=' -f2`
SRC_TAR_FROM=`grep SRC_TAR_FROM config | cut -d'=' -f2`
DEBUG=`grep DEBUG config | cut -d'=' -f2`
SRC_TAR_BASE_URL=`grep SRC_TAR_BASE_URL config | cut -d'=' -f2`
GITEE_ORG=`grep GITEE_ORG config | cut -d'=' -f2`
GITEE_DOMAIN=`grep GITEE_DOMAIN config | cut -d'=' -f2`
OBS_DOMAIN=`grep OBS_DOMAIN config | cut -d'=' -f2`
OBS_PROJECT=`grep OBS_PROJECT config | cut -d'=' -f2`
OPENEULER_BASE_VERSION=`grep OPENEULER_BASE_VERSION config | cut -d'=' -f2`
OPENEULER_SP_VERSION=`grep OPENEULER_SP_VERSION config | cut -d'=' -f2`
OPENEULER_DEV_BRANCH=${ROS_DISTRO}
OPENEULER_ROS_DEP_NEXT_BRANCH=${OPENEULER_BASE_VERSION}-Next
OPENEULER_NEXT_BRANCH=Multi-Version_ros-${OPENEULER_DEV_BRANCH}_${OPENEULER_BASE_VERSION}-Next
if [ "$OPENEULER_SP_VERSION" == "" ]
then
OPENEULER_SP_BRANCH=Multi-Version_ros-${OPENEULER_DEV_BRANCH}_${OPENEULER_BASE_VERSION}
OPENEULER_ROS_DEP_PKG_BRANCH=${OPENEULER_BASE_VERSION}
else
OPENEULER_SP_BRANCH=Multi-Version_ros-${OPENEULER_DEV_BRANCH}_${OPENEULER_BASE_VERSION}-${OPENEULER_SP_VERSION}
OPENEULER_ROS_DEP_PKG_BRANCH=${OPENEULER_BASE_VERSION}-${OPENEULER_SP_VERSION}
fi
OUTPUT=${ROOT}/output
ROS_OUTPUT_TMP=${OUTPUT}/.tmp
ROS_SRC_BASE=${OUTPUT}/src
ROS_DEPS_BASE=${OUTPUT}/deps
ROS_REPO_BASE=${OUTPUT}/repo
ROS_BB_BASE=${OUTPUT}/bb
ROS_OBS_BASE=${OUTPUT}/obs
ROS_GITEE_BASE=${OUTPUT}/gitee
LOG=${OUTPUT}/ros-tools.log
ROS_PROJECTS_NAME=${OUTPUT}/ros-projects-name.list
ROS_3RDPARTY_NAME=$PWD/ros-3rdparty.list
ROS_PKG_LIST=${OUTPUT}/ros-pkg.list
mkdir -p ${OUTPUT}
mkdir -p ${ROS_OUTPUT_TMP}
error_log()
{
echo "`date` [Error] $*"
echo "`date` [Error] $*" >>${LOG}
}
info_log()
{
echo "`date` [Info ] $*"
echo "`date` [Info ] $*" >> ${LOG}
}
debug_log()
{
if [ "$DEBUG" != "yes" ]
then
return
fi
echo "`date` [Debug] $*"
echo "`date` [Debug] $*" >> ${LOG}
}
if [ "${ROS_DISTRO}" = "" ]
then
error_log "ROS_DISTRO not defined"
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyongliang-01/ros-porting-tools.git
[email protected]:xuyongliang-01/ros-porting-tools.git
xuyongliang-01
ros-porting-tools
ros-porting-tools
master

搜索帮助