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