diff --git a/build.sh b/build.sh index 054b7bc..256b213 100755 --- a/build.sh +++ b/build.sh @@ -12,9 +12,7 @@ dpkgtype="app" mainverstr="4" ver3=10 -minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB) -minver=${minver: -2} -echo $minver + if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ]; then @@ -118,11 +116,6 @@ else ver3=$[$ver3 + 10] fi -echo "3rd version replacing pattern: "${ver3} -echo $dpkgpath -ver="$mainverstr.$minver.$ver3.$time2" -echo $ver - cd ../release/$syspath/$cpu/ rm * -R git checkout . @@ -150,6 +143,14 @@ 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 +ver="$mainverstr.$minver.$ver3.$time2" +echo $ver + Version="Version: $ver" Architecture="Architecture: $dpkgarch" packagename="package: $dpkgpath"