get ver
This commit is contained in:
parent
2569900c27
commit
dc4e2cda32
13
build.sh
13
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue