1 Star 0 Fork 12

baixu/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
create-ros-projects-in-obs.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
. base.sh
SERVICE_FILE=_service
prepare()
{
if [ ! -f ${ROS_PROJECTS_NAME} ]
then
error_log "Please give the source repo path of ros"
exit 1
fi
mkdir -p ${ROS_OBS_BASE}
rm -rf ${ROS_OBS_BASE}/*
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
while read project
do
info_log "start create project $project"
mkdir -p ${ROS_OBS_BASE}/${project}
cd ${ROS_OBS_BASE}/${project}
echo "<services>" > ${SERVICE_FILE}
echo " <service name=\"tar_scm\">" >> ${SERVICE_FILE}
echo " <param name=\"scm\">git</param>" >> ${SERVICE_FILE}
echo " <param name=\"url\">https://${GITEE_DOMAIN}/${GITEE_ORG}/${project}.git</param>" >> ${SERVICE_FILE}
echo " <param name=\"exclude\">*</param>" >> ${SERVICE_FILE}
echo " <param name=\"extract\">*</param>" >> ${SERVICE_FILE}
echo " <param name=\"revision\">${ROS_DISTRO}</param>" >> ${SERVICE_FILE}
echo " </service>" >> ${SERVICE_FILE}
echo "</services>" >> ${SERVICE_FILE}
done < ${ROS_PROJECTS_NAME}
info_log "create project ok"
}
main $*
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/baixu_yewu/ros-porting-tools.git
git@gitee.com:baixu_yewu/ros-porting-tools.git
baixu_yewu
ros-porting-tools
ros-porting-tools
master

搜索帮助