mirror of http://192.168.10.4:8099/sane/dpkg.git
调整脚本
This commit is contained in:
parent
73a03c3e5a
commit
596fca464d
23
build.sh
23
build.sh
|
@ -9,6 +9,9 @@ libpath="" #打包时库路径
|
|||
minver="07"
|
||||
oemser=""
|
||||
time2=$(date "+%Y.%m%d")
|
||||
dpkgtype="app"
|
||||
echo "$time2"
|
||||
|
||||
|
||||
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ];
|
||||
then
|
||||
|
@ -225,10 +228,7 @@ else
|
|||
cp dpkg/$syspath/$oem/opt/apps/$dpkgpath/libsane-"$oem"sane.so dpkg/$syspath/$oem/usr/lib/$libpath/sane/libsane-"$oem"sane.so.1
|
||||
fi
|
||||
fi
|
||||
if [ ! -d "dpkg/$syspath/backup/$oem" ]; then
|
||||
echo "mkdir -p dpkg/$syspath/backup/$oem"
|
||||
mkdir -p "dpkg/$syspath/backup/$oem"
|
||||
fi
|
||||
|
||||
chmod 755 dpkg -R
|
||||
chmod 755 backup -R
|
||||
|
||||
|
@ -243,4 +243,17 @@ fi
|
|||
|
||||
cp -rf dpkg/$syspath/$oem/* backup/$syspath/$oem/$ver
|
||||
|
||||
dpkg -b backup/$syspath/$oem/$ver dpkg/$syspath/backup/$oem/$dpkgpath"_"$cpu"_"$ver.deb
|
||||
if [ "$oem" == "hg" ] || [ "$oem" == "lsc" ] || [ "$oem" == "hw" ];
|
||||
then
|
||||
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$time2/$dpkgtype
|
||||
fi
|
||||
else
|
||||
dpkgtype="web"
|
||||
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$time2/$dpkgtype
|
||||
fi
|
||||
fi
|
||||
|
||||
#dpkg -b backup/$syspath/$oem/$ver dpkg/$syspath/backup/$oem/$dpkgpath"_"$cpu"_"$ver.deb
|
||||
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$time2/$dpkgtype/$dpkgpath"_"$cpu"_"$ver.deb
|
||||
|
|
Loading…
Reference in New Issue