This commit is contained in:
parent
cab4d907f1
commit
eb51788729
21
build.sh
21
build.sh
|
@ -1,6 +1,21 @@
|
||||||
script_dir=$(cd $(dirname $0);pwd)
|
script_dir=$(cd $(dirname $0);pwd)
|
||||||
cd $script_dir #勿删
|
cd $script_dir #勿删
|
||||||
|
|
||||||
|
systype=`cat /etc/issue | cut -d' ' -f1`
|
||||||
|
arch=`arch`
|
||||||
|
system="linux"
|
||||||
|
|
||||||
|
echo $systype
|
||||||
|
echo $arch
|
||||||
|
if [ ${systype} = "UnionTech" ]
|
||||||
|
then
|
||||||
|
system="uos"
|
||||||
|
else
|
||||||
|
system="kylin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ${system}
|
||||||
|
|
||||||
pwd
|
pwd
|
||||||
cd ./build2/qt
|
cd ./build2/qt
|
||||||
|
|
||||||
|
@ -69,6 +84,7 @@ if [ "${1}" == "hwall" ] || [ "${1}" == "hw" ]|| [ "${1}" == "hwweb" ] || [ "${
|
||||||
qmake -qt=qt5 -makefile "DEFINES += OEM_HANWANG" HGScanner2.pro
|
qmake -qt=qt5 -makefile "DEFINES += OEM_HANWANG" HGScanner2.pro
|
||||||
make -j8
|
make -j8
|
||||||
cd ../
|
cd ../
|
||||||
|
mv ../../../release/${system}/${arch}/HanvonScan2 ../../../release/${system}/${arch}/HanvonScan
|
||||||
|
|
||||||
elif [ "${1}" == "hwweb" ]; then
|
elif [ "${1}" == "hwweb" ]; then
|
||||||
|
|
||||||
|
@ -132,6 +148,7 @@ elif [ "${1}" == "lscall" ] || [ "${1}" == "lsc" ] || [ "${1}" == "lscweb" ] ||
|
||||||
qmake -qt=qt5 -makefile "DEFINES += OEM_LISICHENG" HGScanner2.pro
|
qmake -qt=qt5 -makefile "DEFINES += OEM_LISICHENG" HGScanner2.pro
|
||||||
make -j8
|
make -j8
|
||||||
cd ../
|
cd ../
|
||||||
|
mv ../../../release/${system}/${arch}/LanxumScan2 ../../../release/${system}/${arch}/LanxumScan
|
||||||
|
|
||||||
elif [ "${1}" == "lscweb" ]; then
|
elif [ "${1}" == "lscweb" ]; then
|
||||||
|
|
||||||
|
@ -195,6 +212,7 @@ elif [ "${1}" == "ctsall" ] || [ "${1}" == "cts" ] || [ "${1}" == "ctsweb" ] ||
|
||||||
qmake -qt=qt5 -makefile "DEFINES += OEM_CANGTIAN" HGScanner2.pro
|
qmake -qt=qt5 -makefile "DEFINES += OEM_CANGTIAN" HGScanner2.pro
|
||||||
make -j8
|
make -j8
|
||||||
cd ../
|
cd ../
|
||||||
|
mv ../../../release/${system}/${arch}/CumtennScan2 ../../../release/${system}/${arch}/CumtennScan
|
||||||
|
|
||||||
elif [ "${1}" == "ctsweb" ]; then
|
elif [ "${1}" == "ctsweb" ]; then
|
||||||
|
|
||||||
|
@ -258,6 +276,7 @@ elif [ "${1}" == "zjall" ] || [ "${1}" == "zj" ] || [ "${1}" == "zjweb" ] || [ "
|
||||||
qmake -qt=qt5 -makefile "DEFINES += OEM_ZHONGJING" HGScanner2.pro
|
qmake -qt=qt5 -makefile "DEFINES += OEM_ZHONGJING" HGScanner2.pro
|
||||||
make -j8
|
make -j8
|
||||||
cd ../
|
cd ../
|
||||||
|
mv ../../../release/${system}/${arch}/MicrotekScan2 ../../../release/${system}/${arch}/MicrotekScan
|
||||||
|
|
||||||
elif [ "${1}" == "zjweb" ]; then
|
elif [ "${1}" == "zjweb" ]; then
|
||||||
|
|
||||||
|
@ -321,6 +340,7 @@ elif [ "${1}" == "zgall" ] || [ "${1}" == "zg" ] || [ "${1}" == "zgweb" ] || [ "
|
||||||
qmake -qt=qt5 -makefile "DEFINES += OEM_ZIGUANG" HGScanner2.pro
|
qmake -qt=qt5 -makefile "DEFINES += OEM_ZIGUANG" HGScanner2.pro
|
||||||
make -j8
|
make -j8
|
||||||
cd ../
|
cd ../
|
||||||
|
mv ../../../release/${system}/${arch}/UniScan2 ../../../release/${system}/${arch}/UniScan
|
||||||
|
|
||||||
elif [ "${1}" == "zgweb" ]; then
|
elif [ "${1}" == "zgweb" ]; then
|
||||||
|
|
||||||
|
@ -389,6 +409,7 @@ else
|
||||||
qmake -qt=qt5 -makefile HGScanner2.pro
|
qmake -qt=qt5 -makefile HGScanner2.pro
|
||||||
make -j8
|
make -j8
|
||||||
cd ../
|
cd ../
|
||||||
|
mv ../../../release/${system}/${arch}/HuaGoScan2 ../../../release/${system}/${arch}/HuaGoScan
|
||||||
|
|
||||||
elif [ "${1}" == "hgweb" ]; then
|
elif [ "${1}" == "hgweb" ]; then
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue