mirror of http://192.168.10.4:8099/sane/dpkg.git
调整oem 代码
This commit is contained in:
parent
74a0a54bc9
commit
d15a275eec
48
build.sh
48
build.sh
|
@ -14,28 +14,7 @@ minver="14"
|
|||
ver3=10
|
||||
|
||||
|
||||
ver3=$[$ver3 * 10]
|
||||
if [ "$cpu" == "x86_64" ]; then
|
||||
ver3=$[$ver3 + 1]
|
||||
elif [ "$cpu" == "aarch64" ]; then
|
||||
ver3=$[$ver3 + 2]
|
||||
elif [ "$cpu" == "mips64" ]; then
|
||||
ver3=$[$ver3 + 3]
|
||||
fi
|
||||
|
||||
ver3=$[$ver3 * 100]
|
||||
if [ "$sys" == "UnionTech" ];then
|
||||
# uos ...
|
||||
ver3=$[$ver3 + 20]
|
||||
elif [ "$sys" == "Kylin" ];then
|
||||
# kylin ...
|
||||
ver3=$[$ver3 + 21]
|
||||
else
|
||||
# unknown OS, set as linux
|
||||
ver3=$[$ver3 + 10]
|
||||
fi
|
||||
|
||||
echo "3rd version replacing pattern: "${ver3}
|
||||
|
||||
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ];
|
||||
then
|
||||
|
@ -97,21 +76,46 @@ else
|
|||
syspath="kylin"
|
||||
|
||||
if [ "$oem" == "hw" ] ;then
|
||||
ver3=14
|
||||
dpkgpath="scanner-driver-hanvon"
|
||||
elif [ "$oem" == "lsc" ];then
|
||||
elif [ "$oem" == "lsc" ];then
|
||||
ver3=16
|
||||
dpkgpath="scanner-driver-lanxum"
|
||||
elif [ "$oem" == "hg" ];then
|
||||
dpkgpath="scanner-driver-huagao"
|
||||
elif [ "$oem" == "hgweb" ];then
|
||||
dpkgpath="huagaowebscan"
|
||||
elif [ "$oem" == "lscweb" ];then
|
||||
ver3=14
|
||||
dpkgpath="lanxumwebscan"
|
||||
elif [ "$oem" == "hwweb" ];then
|
||||
ver3=16
|
||||
dpkgpath="hanvonwebscan"
|
||||
fi
|
||||
fi
|
||||
|
||||
ver3=$[$ver3 * 10]
|
||||
if [ "$cpu" == "x86_64" ]; then
|
||||
ver3=$[$ver3 + 1]
|
||||
elif [ "$cpu" == "aarch64" ]; then
|
||||
ver3=$[$ver3 + 2]
|
||||
elif [ "$cpu" == "mips64" ]; then
|
||||
ver3=$[$ver3 + 3]
|
||||
fi
|
||||
|
||||
ver3=$[$ver3 * 100]
|
||||
if [ "$sys" == "UnionTech" ];then
|
||||
# uos ...
|
||||
ver3=$[$ver3 + 20]
|
||||
elif [ "$sys" == "Kylin" ];then
|
||||
# kylin ...
|
||||
ver3=$[$ver3 + 21]
|
||||
else
|
||||
# unknown OS, set as linux
|
||||
ver3=$[$ver3 + 10]
|
||||
fi
|
||||
|
||||
echo "3rd version replacing pattern: "${ver3}
|
||||
echo $dpkgpath
|
||||
ver="$mainverstr.$minver.$ver3.$time2"
|
||||
echo $ver
|
||||
|
|
Loading…
Reference in New Issue