mirror of http://192.168.10.4:8099/sane/dpkg.git
调整版本号
This commit is contained in:
parent
e2d1c96fde
commit
74a0a54bc9
75
build.sh
75
build.sh
|
@ -6,12 +6,36 @@ dpkgpath="" #打包路径
|
||||||
dpkgarch="" #打包时的版本
|
dpkgarch="" #打包时的版本
|
||||||
libname="" #动态库名字
|
libname="" #动态库名字
|
||||||
libpath="" #打包时库路径
|
libpath="" #打包时库路径
|
||||||
minver="07"
|
|
||||||
oemser=""
|
|
||||||
time2=$(date "+%Y.%m%d")
|
|
||||||
dpkgtype="app"
|
|
||||||
echo "$time2"
|
|
||||||
|
|
||||||
|
time2=$(date "+%g%j") #版本控制
|
||||||
|
dpkgtype="app"
|
||||||
|
mainverstr="4"
|
||||||
|
minver="14"
|
||||||
|
ver3=10
|
||||||
|
|
||||||
|
|
||||||
|
ver3=$[$ver3 * 10]
|
||||||
|
if [ "$cpu" == "x86_64" ]; then
|
||||||
|
ver3=$[$ver3 + 1]
|
||||||
|
elif [ "$cpu" == "aarch64" ]; then
|
||||||
|
ver3=$[$ver3 + 2]
|
||||||
|
elif [ "$cpu" == "mips64" ]; then
|
||||||
|
ver3=$[$ver3 + 3]
|
||||||
|
fi
|
||||||
|
|
||||||
|
ver3=$[$ver3 * 100]
|
||||||
|
if [ "$sys" == "UnionTech" ];then
|
||||||
|
# uos ...
|
||||||
|
ver3=$[$ver3 + 20]
|
||||||
|
elif [ "$sys" == "Kylin" ];then
|
||||||
|
# kylin ...
|
||||||
|
ver3=$[$ver3 + 21]
|
||||||
|
else
|
||||||
|
# unknown OS, set as linux
|
||||||
|
ver3=$[$ver3 + 10]
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "3rd version replacing pattern: "${ver3}
|
||||||
|
|
||||||
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ];
|
if [ "$oem" != "hg" ] && [ "$oem" != "lsc" ] && [ "$oem" != "hw" ] && [ "$oem" != ""hgweb ] && [ "$oem" != ""lscweb ] && [ "$oem" != ""hwweb ];
|
||||||
then
|
then
|
||||||
|
@ -37,15 +61,6 @@ fi
|
||||||
if [ "$sys" == "UnionTech" ];then
|
if [ "$sys" == "UnionTech" ];then
|
||||||
syspath="uos"
|
syspath="uos"
|
||||||
|
|
||||||
if [ "$cpu" == "x86_64" ]; then
|
|
||||||
minver="20"${minver}
|
|
||||||
elif [ "$cpu" == "aarch64" ]; then
|
|
||||||
minver="21"${minver}
|
|
||||||
elif [ "$cpu" == "mips64" ]; then
|
|
||||||
minver="22"${minver}
|
|
||||||
else
|
|
||||||
minver="29"${minver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$oem" == "hw" ]; then
|
if [ "$oem" == "hw" ]; then
|
||||||
dpkgpath="com.hanvonchina.hanvonscan"
|
dpkgpath="com.hanvonchina.hanvonscan"
|
||||||
|
@ -64,15 +79,6 @@ syspath="uos"
|
||||||
elif [ "$sys" == "Kylin" ]; then
|
elif [ "$sys" == "Kylin" ]; then
|
||||||
syspath="kylin"
|
syspath="kylin"
|
||||||
|
|
||||||
if [ "$cpu" == "x86_64" ]; then
|
|
||||||
minver="30"${minver}
|
|
||||||
elif [ "$cpu" == "aarch64" ]; then
|
|
||||||
minver="31"${minver}
|
|
||||||
elif [ "$cpu" == "mips64" ]; then
|
|
||||||
minver="32"${minver}
|
|
||||||
else
|
|
||||||
minver="39"${minver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$oem" == "hw" ] ;then
|
if [ "$oem" == "hw" ] ;then
|
||||||
dpkgpath="scanner-driver-hanvon"
|
dpkgpath="scanner-driver-hanvon"
|
||||||
|
@ -90,17 +96,6 @@ syspath="kylin"
|
||||||
else
|
else
|
||||||
syspath="kylin"
|
syspath="kylin"
|
||||||
|
|
||||||
if [ "$cpu" == "x86_64" ]; then
|
|
||||||
minver="90"${minver}
|
|
||||||
elif [ "$cpu" == "aarch64" ]; then
|
|
||||||
minver="91"${minver}
|
|
||||||
elif [ "$cpu" == "mips64" ]; then
|
|
||||||
minver="92"${minver}
|
|
||||||
else
|
|
||||||
minver="99"${minver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$oem" == "hw" ] ;then
|
if [ "$oem" == "hw" ] ;then
|
||||||
dpkgpath="scanner-driver-hanvon"
|
dpkgpath="scanner-driver-hanvon"
|
||||||
elif [ "$oem" == "lsc" ];then
|
elif [ "$oem" == "lsc" ];then
|
||||||
|
@ -116,16 +111,10 @@ syspath="kylin"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$oem" == "hw" ] || [ "$oem" == "hwweb" ]; then
|
|
||||||
oemser="6"
|
|
||||||
elif [ "$oem" == "lsc" ] || [ "$oem" == "lscweb" ];then
|
|
||||||
oemser="7"
|
|
||||||
else
|
|
||||||
oemser="1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $dpkgpath
|
echo $dpkgpath
|
||||||
ver="4.$minver.$time2$oemser"
|
ver="$mainverstr.$minver.$ver3.$time2"
|
||||||
|
echo $ver
|
||||||
|
|
||||||
cd ../release/$syspath/$cpu/
|
cd ../release/$syspath/$cpu/
|
||||||
rm * -R
|
rm * -R
|
||||||
|
@ -261,4 +250,4 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#dpkg -b backup/$syspath/$oem/$ver dpkg/$syspath/backup/$oem/$dpkgpath"_"$cpu"_"$ver.deb
|
#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
|
dpkg -b backup/$syspath/$oem/$ver backup/dpkg/$time2/$dpkgtype/$dpkgpath"_"$ver"_"$cpu.deb
|
||||||
|
|
Loading…
Reference in New Issue