1 Star 0 Fork 117

shirely/openEuler-Advisor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
check 584 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
specfile=`find ~/openEuler/src-openeuler -name $1.spec`
if [ $specfile != "" ]; then
cur_ver=`grep Version $specfile | awk -F: '{print $2}' | sed -e "s/[ \t]*//g"`
#deal with the special Version defination, like "Version: %{xxx}"
if [[ "$cur_ver" == %{* ]]; then
new_ver=`echo $cur_ver | sed 's/.*{\(.*\)}.*/\1/g'`
new_lable='%global '$new_ver' '
cur_ver=`grep "${new_lable}" $specfile | awk -F "${new_lable}" '{print $2}'`
fi
./check_upstream.rb $1 $cur_ver
else
echo $1, "is not found in src-openeuler\n"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shirely16/openEuler-Advisor.git
[email protected]:shirely16/openEuler-Advisor.git
shirely16
openEuler-Advisor
openEuler-Advisor
master

搜索帮助