代码拉取完成,页面将自动刷新
#!/bin/bash
. base.sh
PCKG_MGMT=${OUTPUT}/pckg-mgmt.yaml
EPOL_LIST=${OUTPUT}/epol.list
ROS_OBS_FROM=openEuler:22.03:LTS:Next:Epol:Multi-Version:ROS:humble
ROS_OBS_TO=openEuler:22.03:LTS:SP2:Epol:Multi-Version:ROS:humble
ROS_DEP_OBS_FROM=openEuler:22.03:LTS:Next:Epol
ROS_DEP_OBS_TO=openEuler:22.03:LTS:SP2:Epol
prepare()
{
if [ ! -f ${EPOL_LIST} ]
then
error_log "Please give the source repo path of ros"
exit 1
fi
>${PCKG_MGMT}
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
while read repo
do
info_log "start create project $repo"
grep -q "^${repo}$" ${ROS_PROJECTS_NAME}
if [ $? -eq 0 ]
then
obs_from=${ROS_OBS_FROM}
obs_to=${ROS_OBS_TO}
source_dir=${OPENEULER_NEXT_BRANCH}
destination_dir=${OPENEULER_SP_BRANCH}
else
obs_from=${ROS_DEP_OBS_FROM}
obs_to=${ROS_DEP_OBS_TO}
source_dir=${OPENEULER_ROS_DEP_NEXT_BRANCH}
destination_dir=${OPENEULER_ROS_DEP_PKG_BRANCH}
fi
echo '- name: '$repo >> ${PCKG_MGMT}
echo ' source_dir: '${source_dir} >> ${PCKG_MGMT}
echo ' destination_dir: '${destination_dir} >> ${PCKG_MGMT}
echo ' obs_from: '${obs_from} >> ${PCKG_MGMT}
echo ' obs_to: '${obs_to} >> ${PCKG_MGMT}
echo ' date: '\'`date +%Y-%m-%d`\' >> ${PCKG_MGMT}
done < ${EPOL_LIST}
info_log "create project ok"
}
main $*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。