1 Star 0 Fork 12

xuyongliang_01/ros-porting-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
download-obs-projects.sh 603 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
. base.sh
USER_INFO="$1"
OBS_PACKAGES_LIST=${OUTPUT}/obs-packages.list
OBS_BASE=${OUTPUT}/obs
prepare()
{
if [ "$USER_INFO" == "" ]
then
echo "Usage:"
echo " ./$0 user:pass"
echo ""
exit 1
fi
mkdir -p ${OBS_BASE}
}
main()
{
prepare
info_log "Start to download obs projects."
cd ${OBS_BASE}
osc list /${OBS_PROJECT} >${OBS_PACKAGES_LIST}
while read pkg
do
info_log "start checkout package $pkg"
osc co ${OBS_PROJECT}/$pkg
[ $? -ne 0 ] && log_error "Checkout package $pkg error"
done < ${OBS_PACKAGES_LIST}
info_log "get status of projects ok"
}
main $*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyongliang-01/ros-porting-tools.git
[email protected]:xuyongliang-01/ros-porting-tools.git
xuyongliang-01
ros-porting-tools
ros-porting-tools
master

搜索帮助