1 Star 0 Fork 12

zhangdaolong/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
get-epol.sh 966 Bytes
一键复制 编辑 原始数据 按行查看 历史
NiuTao 提交于 2023-06-17 10:41 . fix: fix eulermaker build error
#!/bin/bash
. base.sh
GEN_ONE=$1
ROS_CAN_INSTALLED_LIST=${OUTPUT}/ros-can-installed.list
ROS_PKG_LIST=${OUTPUT}/ros-pkg.list
ROS_EPOL_LIST=${OUTPUT}/epol.list
ROS_PACKAGES_LIST=${OUTPUT}/packages.list
prepare()
{
if [ ! -f ${ROS_CAN_INSTALLED_LIST} -o ! -f ${ROS_PKG_LIST} ]
then
error_log "Can not find ${ROS_PKG_SRC}, you can use get-repo-src.sh to create it"
exit 1
fi
rm -f ${ROS_EPOL_LIST} ${ROS_PACKAGES_LIST} ${OUTPUT}/.epol.list
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
while read pkg repo version
do
grep -qP "ros-${ROS_DISTRO}-${pkg}$" ${ROS_CAN_INSTALLED_LIST} && echo $repo >> ${OUTPUT}/.epol.list
done < ${ROS_PKG_LIST}
cat ${OUTPUT}/.epol.list | sort | uniq >${ROS_EPOL_LIST}
cat ${ROS_CAN_INSTALLED_LIST} | sort >${ROS_PACKAGES_LIST}
info_log "Gen ros-pkg-src.list done, you can find it in ${ROS_PKG_SRC}"
}
main $*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangdaolong/ros-porting-tools.git
[email protected]:zhangdaolong/ros-porting-tools.git
zhangdaolong
ros-porting-tools
ros-porting-tools
master

搜索帮助