代码拉取完成,页面将自动刷新
同步操作将从 openEuler/ros-porting-tools 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。