mirror of http://192.168.10.4:8099/sane/dpkg.git
调整shell
This commit is contained in:
parent
43fac18652
commit
21a45749f3
28
build.sh
28
build.sh
|
@ -229,18 +229,44 @@ rm dpkg/$syspath/$oem/etc/udev/rules.d/*
|
||||||
cp dpkg/60-sane.rules dpkg/$syspath/$oem/etc/udev/rules.d/60-"$oem"sane.rules
|
cp dpkg/60-sane.rules dpkg/$syspath/$oem/etc/udev/rules.d/60-"$oem"sane.rules
|
||||||
|
|
||||||
if [ -d "dpkg/$syspath/$oem/usr/lib" ];then
|
if [ -d "dpkg/$syspath/$oem/usr/lib" ];then
|
||||||
|
if [ "$cpu" == "mips64" ]; then
|
||||||
|
|
||||||
|
rm dpkg/$syspath/$oem/usr/lib/*
|
||||||
|
|
||||||
|
if [ ! -d dpkg/$syspath/$oem/usr/lib/$libpath ]
|
||||||
|
mkdir dpkg/$syspath/$oem/usr/lib/$libpath/sane
|
||||||
|
mkdir dpkg/$syspath/$oem/usr/lib/"mips64el-linux-gunabi64"/sane
|
||||||
|
|
||||||
|
if [ "$oem" == "lscsm" ];then
|
||||||
|
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-lscsane.so.1
|
||||||
|
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/"mips64el-linux-gunabi64"/sane/libsane-lscsane.so.1
|
||||||
|
else
|
||||||
|
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
|
||||||
|
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/"mips64el-linux-gunabi64"/sane/libsane-"$oem"sane.so
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ $? != 0 ];then
|
||||||
|
echo "-----------------cp mips64el libsane fail ,not find libsane-----------------"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
mv dpkg/$syspath/$oem/usr/lib/* dpkg/$syspath/$oem/usr/lib/$libpath
|
mv dpkg/$syspath/$oem/usr/lib/* dpkg/$syspath/$oem/usr/lib/$libpath
|
||||||
rm dpkg/$syspath/$oem/usr/lib/$libpath/sane/*
|
rm dpkg/$syspath/$oem/usr/lib/$libpath/sane/*
|
||||||
|
|
||||||
if [ "$oem" == "lscsm" ];then
|
if [ "$oem" == "lscsm" ];then
|
||||||
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-lscsane.so.1
|
cp release/$syspath/$cpu/libsane-lscsane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-lscsane.so.1
|
||||||
else
|
else
|
||||||
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
|
cp release/$syspath/$cpu/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ $? != 0 ];then
|
if [ $? != 0 ];then
|
||||||
echo "-----------------cp libsane fail ,not find libsane-----------------"
|
echo "-----------------cp libsane fail ,not find libsane-----------------"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "11111111111111111111111111111111111111111111111111111"
|
echo "11111111111111111111111111111111111111111111111111111"
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue