1 Star 0 Fork 12

NiuTao/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
create-ebs-projects.sh 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
NiuTao 提交于 2023-06-08 19:26 . feat: create ebs config
#!/bin/bash
. base.sh
EBS_CONFIG_TPLT=${ROOT}/template/project.json
EBS_CONFIG=${OUTPUT}/project.json
EBS_PROJECTS=${OUTPUT}/ebs-projects.list
prepare()
{
if [ ! -f ${ROS_PROJECTS_NAME} -o ! -f ${EBS_PROJECTS} ]
then
error_log "Please give the source repo path of ros"
exit 1
fi
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
cp ${EBS_CONFIG_TPLT} ${EBS_CONFIG}
while read pkg
do
info_log "start create project $pkg"
grep -q "^${pkg}$" ${ROS_PROJECTS_NAME}
if [ $? -eq 0 ]
then
branch=${OPENEULER_SP_BRANCH}
else
branch=${OPENEULER_ROS_DEP_PKG_BRANCH}
fi
echo ' {' >> ${EBS_CONFIG}
echo ' "spec_name": "'${pkg}'",' >> ${EBS_CONFIG}
echo ' "spec_url": "'https://${GITEE_DOMAIN}/${GITEE_ORG}/${pkg}.git'",' >> ${EBS_CONFIG}
echo ' "spec_branch": "'${branch}'",' >> ${EBS_CONFIG}
echo ' "spec_description": "sig-ROS package '${pkg}'"' >> ${EBS_CONFIG}
echo ' },' >> ${EBS_CONFIG}
done < ${EBS_PROJECTS}
echo ' ]' >> ${EBS_CONFIG}
echo '}' >> ${EBS_CONFIG}
info_log "create project ok"
}
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

搜索帮助