mirror of http://192.168.10.4:8099/sane/dpkg.git
shell
This commit is contained in:
parent
c415604592
commit
5298a885f3
25
build.sh
25
build.sh
|
@ -269,20 +269,21 @@ if [ ! -d "backup/$syspath/$oem/$ver" ]; then
|
|||
fi
|
||||
|
||||
cp -rf dpkg/$syspath/$oem/* backup/$syspath/$oem/$ver
|
||||
|
||||
if [ "$oem" == "hg" ] || [ "$oem" == "lsc" ] || [ "$oem" == "hw" ];then
|
||||
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$time2/$dpkgtype
|
||||
path=""
|
||||
if [ "$oem" == "hg" ] || [ "$oem" == "hgweb" ] || [ "$oem" == "hgso" ];then
|
||||
dpkgtype="hg"
|
||||
if [ ! -d "backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype/
|
||||
fi
|
||||
elif [ "$oem" == "hgweb" ] || [ "$oem" == "lscweb" ] || [ "$oem" == "hwweb" ];then
|
||||
dpkgtype="web"
|
||||
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$time2/$dpkgtype
|
||||
elif [ "$oem" == "lsc" ] || [ "$oem" == "lscweb" ] || [ "$oem" == "lscso" ];then
|
||||
dpkgtype="lsc"
|
||||
if [ ! -d "backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype/
|
||||
fi
|
||||
else
|
||||
dpkgtype="sdk"
|
||||
if [ ! -d "backup/dpkg/$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$time2/$dpkgtype
|
||||
dpkgtype="hw"
|
||||
if [ ! -d "backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype" ];then
|
||||
mkdir -p backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype/
|
||||
fi
|
||||
fi
|
||||
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$time2/$dpkgtype/$oem/$dpkgpath"_"$ver"_"$dpkgarch.deb
|
||||
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$mainverstr.$minver.$time2/$dpkgtype/$dpkgpath"_"$ver"_"$dpkgarch.deb
|
||||
|
|
Loading…
Reference in New Issue