1 Star 0 Fork 12

NiuTao/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
push-projects-to-obs.sh 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
. base.sh
ROS_PUSH_LIST=${OUTPUT}/ros-push.list
prepare()
{
if [ ! -f ${ROS_PUSH_LIST} ]
then
error_log "Please give the ${ROS_CHECK_LIST}"
exit 1
fi
mkdir -p ${OUTPUT}/obs_project
cd ${OUTPUT}/obs_project
osc checkout ${OBS_PROJECT}
osc update
echo "success clone obs prjector: ${OBS_PROJE}"
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
while read project
do
info_log "start push to $project to obs"
if [ -d "${OUTPUT}/obs_project/${OBS_PROJECT}/$project" ]
then
continue
fi
#1. create project
cd ${OUTPUT}/obs_project/${OBS_PROJECT}
osc mkpac $project
#2. copy obs prject
cp ${OUTPUT}/obs/${project}/_service ${OUTPUT}/obs_project/${OBS_PROJECT}/${project}/_service
#3. push _service
cd ${OUTPUT}/obs_project/${OBS_PROJECT}/${project}
osc add _service
osc commit -m "fix"
done < ${ROS_PUSH_LIST}
while read project
do
info_log "start push to $project to obs"
if [ -d "${OUTPUT}/obs_project/${OBS_PROJECT}/$project" ]
then
continue
fi
#1. create project
cd ${OUTPUT}/obs_project/${OBS_PROJECT}
osc mkpac $project
#2. copy obs prject
cp ${OUTPUT}/obs/${project}/_service ${OUTPUT}/obs_project/${OBS_PROJECT}/${project}/_service
#3. push _service
cd ${OUTPUT}/obs_project/${OBS_PROJECT}/${project}
osc add _service
osc commit -m "fix"
done < ${ROS_3RDPARTY_NAME}
info_log "Done push projects to obs"
}
main $*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/will_niutao/ros-porting-tools.git
[email protected]:will_niutao/ros-porting-tools.git
will_niutao
ros-porting-tools
ros-porting-tools
master

搜索帮助