调整sane库打包到wen

This commit is contained in:
modehua 2023-04-15 13:06:21 +08:00
parent bcbe4f90db
commit e2be8f2f62
1 changed files with 34 additions and 31 deletions

View File

@ -47,7 +47,6 @@ if [ "$oem" != "hg" ] \
&& [ "$oem" != "lscso" ] \ && [ "$oem" != "lscso" ] \
&& [ "$oem" != "hwso" ] \ && [ "$oem" != "hwso" ] \
&& [ "$oem" != "lscsm" ]\ && [ "$oem" != "lscsm" ]\
&& [ "$oem" != "ctsso" ]\ && [ "$oem" != "ctsso" ]\
&& [ "$oem" != "cts" ]\ && [ "$oem" != "cts" ]\
&& [ "$oem" != "zg" ]\ && [ "$oem" != "zg" ]\
@ -305,7 +304,9 @@ elif [ "$oem" == "cts" ] \
|| [ "$oem" == "ctsso" ]; || [ "$oem" == "ctsso" ];
then then
ver3=18 ver3=18
elif [ "$oem" == "zj" ]; elif [ "$oem" == "zj" ]\
|| [ "$oem" == "zjweb" ]\
|| [ "$oem" == "zjsso" ];
then then
ver3=20 ver3=20
elif [ "$oem" == "zg" ]; elif [ "$oem" == "zg" ];
@ -381,6 +382,8 @@ rm dpkg/$dpkgtype/$oem/etc/udev/rules.d/*
cp dpkg/60-sane.rules dpkg/$dpkgtype/$oem/etc/udev/rules.d/60-"$oem"sane.rules cp dpkg/60-sane.rules dpkg/$dpkgtype/$oem/etc/udev/rules.d/60-"$oem"sane.rules
if [ "${oem:0-2:2}" != "so" ] || [ "${oem:0-3:3}" != "web" ];
then
#创建sane的文件目录 //必须保证这一步成功 #创建sane的文件目录 //必须保证这一步成功
rm -rf dpkg/$dpkgtype/$oem/usr/lib/* rm -rf dpkg/$dpkgtype/$oem/usr/lib/*
if [ $? -ne 0 ];then if [ $? -ne 0 ];then
@ -422,12 +425,12 @@ else
echo "del sane file fail" echo "del sane file fail"
exit 1 exit 1
fi fi
fi
if [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ] || [ "$oem" == "hgweb" ] || [ "$oem" == "ctsweb" ] || [ "$oem" == "zjweb" ];
if [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ] || [ "$oem" == "hgweb" ] || [ "$oem" == "ctsweb" ];
then then
cp -rf release/$syspath/$cpu/* dpkg/$dpkgtype/$oem/opt/$dpkgpath/bin cp -rf release/$syspath/$cpu/* dpkg/$dpkgtype/$oem/opt/$dpkgpath/bin
elif [ "$oem" == "hgso" ] || [ "$oem" == "hwso" ] || [ "$oem" == "lscso" ] || [ "$oem" == "ctsso" ]; elif [ "$oem" == "hgso" ] || [ "$oem" == "hwso" ] || [ "$oem" == "lscso" ] || [ "$oem" == "ctsso" ] || [ "$oem" == "zjso" ];
then then
cp -rf release/$syspath/$cpu/* dpkg/$dpkgtype/$oem/opt/$dpkgpath/lib cp -rf release/$syspath/$cpu/* dpkg/$dpkgtype/$oem/opt/$dpkgpath/lib
cp sdk/include/scannerlib/* dpkg/$dpkgtype/$oem/opt/$dpkgpath/include cp sdk/include/scannerlib/* dpkg/$dpkgtype/$oem/opt/$dpkgpath/include