1 Star 0 Fork 27

chen-jan/abrt

forked from src-openEuler/abrt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
creat_eng.sh 900 Bytes
一键复制 编辑 原始数据 按行查看 历史
chen-jan 提交于 2023-04-11 11:12 . up
#!/bin/bash
com_num=$#
arch="standard_`uname -m` `uname -m`"
if [ ${com_num} -ne 3 ];then
echo "ENG NAME:
openEuler:Mainline
openEuler:20.03:LTS
openEuler:21.03
openEuler:21.09
openEuler:22.03:LTS
...
"
echo "usage: sh creat_eng.sh [obs eng name] [usr eng name] [pkg name]"
echo " sh creat_eng.sh openEuler:Mainline home:chen-jan:branches:openEuler:Mainline-0524 ecj"
exit
fi
obs_eng=$1
usr_eng=$2
pkg=$3
rm -rf obs-eng
mkdir obs-eng
cd obs-eng
osc getbinaries ${obs_eng} ${pkg} ${arch}
cd binaries
rpm -qp --provides *.rpm|awk '{print $1}'|for i in `xargs`
do
yum repoquery --whatrequires $i >> obs-eng.list
done
for i in `cat obs-eng.list`
do
yum repoquery -i $i|grep Name|head -1|awk '{print $NF}' >> pkg.list
done
for name in `cat pkg.list|sort -u`
do
osc branch ${obs_eng} ${name} ${usr_eng}
done
cd ../../
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chen-jan/abrt.git
[email protected]:chen-jan/abrt.git
chen-jan
abrt
abrt
master

搜索帮助