1 Star 0 Fork 12

菠萝有点酸/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
get-ref-count.sh 722 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
. base.sh
ROS_PKG_REF_COUNT=${OUTPUT}/pkg-ref-count
prepare()
{
if [ ! -d ${ROS_DEPS_BASE} ]
then
error_log "Can not find ${ROS_DEPS_BASE}, you can use get-pkg-deps.sh to create it"
exit 1
fi
>${ROS_PKG_REF_COUNT}
}
main()
{
prepare
info_log "Start to analyse ros-pkg."
ls ${ROS_DEPS_BASE}/*Requires | grep -v "\-test\-" | xargs grep -F "ros-\${ros_distro}" | awk -F":" '{print $NF}' | awk -F'ros-\\${ros_distro}-' '{print $2}' >${OUTPUT}/.requires
while pkg prj version
do
count=`grep -P "^$pkg$" ${OUTPUT}.requires | wc -l`
echo -e "$pkg\t$count" >>${ROS_PKG_REF_COUNT}
done < ${ROS_PKG_LIST}
info_log "Gen pkg-ref-count done, you can find it in ${ROS_PKG_REF_COUNT}"
}
main $*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bcsecurity/ros-porting-tools.git
[email protected]:bcsecurity/ros-porting-tools.git
bcsecurity
ros-porting-tools
ros-porting-tools
master

搜索帮助