diff --git a/build.sh b/build.sh index a3b4938..2e8acab 100755 --- a/build.sh +++ b/build.sh @@ -6,12 +6,16 @@ dpkgpath="" #打包路径 dpkgarch="" #打包时的版本 libname="" #动态库名字 libpath="" #打包时库路径 - time2=$(date "+%g%j") #版本控制 dpkgtype="app" -mainverstr="4" ver3=10 +mainverstr=$(cat ../sdk/include/huagao/brand.h |grep VERSION_MAIN) +mainverstr=${mainverstr: -2} +mainverstr=$(echo $mainverstr) +minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB) +minver=${minver: -2} +minver=$(echo $minver) if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ]; @@ -143,8 +147,7 @@ if [ $? -ne 0 ];then exit 1 fi -minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB) -minver=${minver: -2} + echo $minver echo "3rd version replacing pattern: "${ver3} echo $dpkgpath