This commit is contained in:
13038267101 2022-08-29 17:59:06 +08:00
parent 2569900c27
commit dc4e2cda32
1 changed files with 11 additions and 2 deletions

View File

@ -3,9 +3,17 @@ oem=$1 #厂商
cpu=$(arch) #cpu架构
sys=$(cat /etc/issue)
sys=${sys%% *} #操作系统
mainverstr="s/ver_1/4/g" #版本控制
mainverstr=$(cat ../sdk/include/huagao/brand.h |grep VERSION_MAIN)
mainverstr=${mainverstr: -3}
mainverstr=$(echo $mainverstr)
minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB)
minver=${minver: -2}
minver=${minver: -3}
minver=$(echo $minver)
mainverstr="s/ver_1/$mainverstr/g" #版本控制
minverstr="s/ver_2/"
verstr3="s/ver_3/"
ver3=10
@ -13,6 +21,7 @@ ver3=10
#sudo apt install libudev-dev
minverstr=${minverstr}${minver}"/g"
echo "minor version replacing pattern: "${minverstr}
echo $mainverstr
if [ "$oem" == "hw" ] || [ "$oem" == "hwweb" ]; then
ver3=16