代码拉取完成,页面将自动刷新
同步操作将从 openEuler/ros-porting-tools 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
. base.sh
ROS_SIG_BASE=${OUTPUT}/sig/sig-ROS/src-openeuler
prepare()
{
if [ ! -f ${ROS_PROJECTS_NAME} ]
then
error_log "Please give the source repo path of ros"
exit 1
fi
mkdir -p ${ROS_SIG_BASE}
rm -rf ${ROS_SIG_BASE}/*
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
cd ${ROS_SIG_BASE}
while read project
do
class=${project:0:1}
mkdir -p $class
echo "name: $project" >${ROS_SIG_BASE}/$class/$project.yaml
specs=`cd ${ROS_REPO_BASE}/$project && ls *.spec | sed -e "s#.spec#,#g" | tr -d '\n' | sed -e "s/,$/./g"`
echo "description: The Robot Operating System(ROS) project, include $specs" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "upstream: ${SRC_TAR_BASE_URL}" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "branches:" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "- name: master" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " type: protected" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "- name: ${ROS_DISTRO}" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " type: protected" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " create_from: master" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "- name: Multi-Version_ros-${ROS_DISTRO}_openEuler-22.03-LTS-Next" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " type: protected" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " create_from: ${ROS_DISTRO}" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "- name: Multi-Version_ros-${ROS_DISTRO}_openEuler-22.03-LTS-SP2" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " type: protected" >>${ROS_SIG_BASE}/$class/$project.yaml
echo " create_from: Multi-Version_ros-${ROS_DISTRO}_openEuler-22.03-LTS-Next" >>${ROS_SIG_BASE}/$class/$project.yaml
echo "type: public" >>${ROS_SIG_BASE}/$class/$project.yaml
done < ${ROS_PROJECTS_NAME}
info_log "create project ok"
}
main $*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。