From b04d4dcdbda150a9c7925cad8fb587aa3b8647f9 Mon Sep 17 00:00:00 2001 From: modehua Date: Mon, 13 Feb 2023 17:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AB=8B=E6=80=9D=E8=BE=B0?= =?UTF-8?q?=E6=89=93=E5=8C=85=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3e52122..ad28140 100755 --- a/build.sh +++ b/build.sh @@ -356,7 +356,7 @@ then fi cp release/$syspath/$cpu/libsane-"$sanelibname"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$sanelibname"sane.so.1 - cp release/$syspath/$cpu/libsane-"$sanelibname"sane.so dpkg/$syspath/$oem/usr/local/lib/sane/libsane-"$sanelibname"sane.so.1 + if [ $? -ne 0 ];then echo "copy libsane file fail sane name is :libsane-"$sanelibname"sane.so!!!" exit 1 @@ -394,7 +394,16 @@ elif [ "$oem" == "lscsm" ]; then cp -rf release/$syspath/$cpu/* dpkg/$syspath/$oem/opt/$dpkgpath else - savedpkgpath="dpkg/$syspath/$oem/opt/apps/$dpkgpath" + #暂时只拷贝立思辰 + if [ "$oem" == "lsc" ]; + then + if [ ! -d "dpkg/$syspath/$oem/usr/local/lib/sane/" ]; + then + mkdir -p "dpkg/$syspath/$oem/usr/local/lib/sane/" + fi + cp release/$syspath/$cpu/libsane-"$sanelibname"sane.so dpkg/$syspath/$oem/usr/local/lib/sane/libsane-"$sanelibname"sane.so.1 + fi + savedpkgpath="dpkg/$syspath/$oem/opt/apps/$dpkgpath" echo $dpkgpath if [ "$sys" == "UnionTech" ]; then