代码拉取完成,页面将自动刷新
同步操作将从 openEuler/ros-porting-tools 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
. base.sh
ROS_REPORT=${OUTPUT}/ros-report.list
ROS_CHECK_LIST=${ROOT}/ros-check.list
ROS_BUILD_STATUS=${OUTPUT}/ros-build-status.list
prepare()
{
if [ ! -f ${ROS_PROJECTS_NAME} -o ! -f ${ROS_PKG_LIST} -o ! -f ${ROS_CHECK_LIST} -o ! -f ${ROS_BUILD_STATUS} ]
then
error_log "Can not find ${ROS_PROJECTS_NAME} and ${ROS_PKG_LIST}"
exit 1
fi
>${ROS_REPORT}
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
echo -e "Repository\tPackage\tIs in work list\tBuild status" >> ${ROS_REPORT}
while read repo
do
#if [ "$repo" != "control_box_rst" ]
#then
# continue
#fi
grep -P "\t$repo\t" ${ROS_PKG_LIST} >${OUTPUT}/.repo_pkgs
echo "$repo" >> ${ROS_REPORT}
while read pkg _repo version
do
if [ "$pkg" = "" -o "$_repo" = "" ]
then
error_log "Wrong package $pkg"
exit 1
fi
is_in_ros_check=""
build_status=""
grep -qP "^$pkg\$" ${ROS_CHECK_LIST}
[ $? -eq 0 ] && is_in_ros_check=yes
[ "$is_in_ros_check" == "yes" ] && build_status=`grep -P "^$pkg\t" ${ROS_BUILD_STATUS} | awk '{print $2}'`
echo -e "\t$pkg\t${is_in_ros_check}\t${build_status}" >> ${ROS_REPORT}
done < ${OUTPUT}/.repo_pkgs
done <${ROS_PROJECTS_NAME}
echo "-----------package not in ros-----------" >> ${ROS_REPORT}
while read pkg
do
grep -qP "^$pkg\t" ${ROS_PKG_LIST}
[ $? -eq 0 ] && continue
echo "$pkg" >> ${ROS_REPORT}
build_status=`grep -P "^$pkg\t" ${ROS_BUILD_STATUS} | awk '{print $2}'`
echo -e "\t$pkg\tyes\t${build_status}" >> ${ROS_REPORT}
done < ${ROS_CHECK_LIST}
info_log "Gen ${ROS_REPORT} done"
}
main $*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。