This commit is contained in:
13038267101 2022-11-15 11:27:31 +08:00
parent abb694c44f
commit c66d4d5106
1 changed files with 53 additions and 32 deletions

View File

@ -73,48 +73,67 @@ if [ "$sys" == "UnionTech" ];then
syspath="uos"
workpath=""
if [ "$oem" == "hw" ]; then
if [ "$oem" == "hw" ]; then
dpkgpath="com.hanvonchina.hanvonscan"
elif [ "$oem" == "lsc" ];then
elif [ "$oem" == "lsc" ];then
dpkgpath="com.lanxumchina.lanxumscan"
elif [ "$oem" == "hg" ];then
elif [ "$oem" == "hg" ];then
dpkgpath="com.huagaochina.huagoscan"
elif [ "$oem" == "hgweb" ];then
dpkgpath="huagaowebscan"
elif [ "$oem" == "lscweb" ];then
dpkgpath="lanxumwebscan"
elif [ "$oem" == "hwweb" ];then
dpkgpath="hanvonwebscan"
elif [ "$oem" == "cts" ];then
dpkgpath="com.cumtennchina.cumtennscan"
elif [ "$oem" == "hgweb" ];then
dpkgpath="huagaowebscan"
elif [ "$oem" == "lscweb" ];then
dpkgpath="lanxumwebscan"
elif [ "$oem" == "hwweb" ];then
dpkgpath="hanvonwebscan"
elif [ "$oem" == "ctsweb" ];then
dpkgpath="cumtennwebscan"
elif [ "$oem" == "hgso" ];then
dpkgpath="huagaoscansdk"
elif [ "$oem" == "lscso" ];then
dpkgpath="lanxumscansdk"
elif [ "$oem" == "hwso" ];then
dpkgpath="hanvonscansdk"
dpkgpath="huagaoscansdk"
elif [ "$oem" == "lscso" ];then
dpkgpath="lanxumscansdk"
elif [ "$oem" == "hwso" ];then
dpkgpath="hanvonscansdk"
elif [ "$oem" == "ctsso" ];then
dpkgpath="cumtennscansdk"
fi
else
syspath="kylin"
if [ "$oem" == "hw" ] ;then
if [ "$oem" == "hw" ] ;then
dpkgpath="scanner-driver-hanvon"
elif [ "$oem" == "lsc" ];then
elif [ "$oem" == "lsc" ];then
dpkgpath="scanner-driver-lanxum"
elif [ "$oem" == "hg" ];then
elif [ "$oem" == "hg" ];then
dpkgpath="scanner-driver-huagao"
elif [ "$oem" == "hgweb" ];then
elif [ "$oem" == "cts" ];then
dpkgpath="scanner-driver-cumtenn"
elif [ "$oem" == "hgweb" ];then
dpkgpath="huagaowebscan"
elif [ "$oem" == "lscweb" ];then
elif [ "$oem" == "lscweb" ];then
dpkgpath="lanxumwebscan"
elif [ "$oem" == "hwweb" ];then
elif [ "$oem" == "hwweb" ];then
dpkgpath="hanvonwebscan"
elif [ "$oem" == "ctsweb" ];then
dpkgpath="cumtennwebscan"
elif [ "$oem" == "hgso" ];then
dpkgpath="huagaoscansdk"
elif [ "$oem" == "lscso" ];then
elif [ "$oem" == "lscso" ];then
dpkgpath="lanxumscansdk"
elif [ "$oem" == "hwso" ];then
elif [ "$oem" == "hwso" ];then
dpkgpath="hanvonscansdk"
elif [ "$oem" == "ctsso" ];then
dpkgpath="cumtennscansdk"
elif [ "$oem" == "lscsm" ];then
dpkgpath="lanxumscan"
dpkgpath="lanxumscan"
fi
fi
@ -123,6 +142,8 @@ if [ "$oem" == "lsc" ] || [ "$oem" == "lscweb" ] || [ "$oem" == "lscso" ] || [ "
ver3=14
elif [ "$oem" == "hw" ] || [ "$oem" == "hwweb" ] || [ "$oem" == "hwso" ];then
ver3=16
elif [ "$oem" == "cts" ] || [ "$oem" == "ctsweb" ] || [ "$oem" == "ctsso" ];then
ver3=18
fi
ver3=$[$ver3 * 10]
if [ "$cpu" == "x86_64" ]; then
@ -173,6 +194,8 @@ elif [ "$oem" == "hwso" ];then
./build.sh hw
elif [ "$oem" == "lscso" ] || [ "$oem" == "lscsm" ];then
./build.sh lsc
elif [ "$oem" == "ctsso" ];then
./build.sh cts
else
./build.sh $oem
fi
@ -194,6 +217,8 @@ elif [ "$oem" == "hwso" ];then
./build.sh hw
elif [ "$oem" == "lscso" ];then
./build.sh lsc
elif [ "$oem" == "ctsso" ];then
./build.sh cts
fi
if [ "$oem" == "lscsm" ];then
@ -276,9 +301,9 @@ if [ -d "dpkg/$syspath/$oem/usr/lib" ];then
sleep 3
fi
if [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ] || [ "$oem" == "hgweb" ]; then
if [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ] || [ "$oem" == "hgweb" ] || [ "$oem" == "ctsweb" ]; then
cp -rf release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/$dpkgpath/bin
elif [ "$oem" == "hgso" ] || [ "$oem" == "hwso" ] || [ "$oem" == "lscso" ];then
elif [ "$oem" == "hgso" ] || [ "$oem" == "hwso" ] || [ "$oem" == "lscso" ] || [ "$oem" == "ctso" ];then
cp -rf release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/$dpkgpath/lib
cp sdk/include/scannerlib/* dpkg/$syspath/$oem/opt/$dpkgpath/include
rm dpkg/$syspath/$oem/opt/$dpkgpath/lib/*Scan
@ -336,20 +361,16 @@ cp -rf dpkg/$syspath/$oem/* backup/$syspath/$oem/$ver
path=""
if [ "$oem" == "hg" ] || [ "$oem" == "hgweb" ] || [ "$oem" == "hgso" ];then
dpkgtype="hg"
if [ ! -d "backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype" ];then
mkdir -p "backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype/"
fi
elif [ "$oem" == "lsc" ] || [ "$oem" == "lscweb" ] || [ "$oem" == "lscso" ] || [ "$oem" == "lscsm" ];then
dpkgtype="lsc"
if [ ! -d "backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype" ];then
mkdir -p "backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype/"
fi
elif [ "$oem" == "cts" ] || [ "$oem" == "ctsweb" ] || [ "$oem" == "ctsso" ];then
dpkgtype="cts"
else
dpkgtype="hw"
fi
if [ ! -d "backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype" ];then
mkdir -p "backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype/"
fi
fi
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$mainverstr.$minver/$time2/$dpkgtype/$dpkgpath"_"$ver"_"$dpkgarch.deb
getismount