From 0a4a717714ce198b7e4fdc181bf3c57286a07fd6 Mon Sep 17 00:00:00 2001 From: "mo1027728827@qq.com" Date: Fri, 6 May 2022 09:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/build.sh b/build.sh index 0060646..193b21f 100755 --- a/build.sh +++ b/build.sh @@ -1,16 +1,9 @@ -sys=$1 #系统 sysarch=$(arch) - - -if [ "$sys" != "uos" ] && [ "$sys" != "kylin" ];then - - echo "参数请设置根据系统设置,uos or kylin" - exit 1 -fi - +sys=$(cat /etc/issue) +sys=${sys%% *} echo "------------------------------change cmake path:$1--------------------" -if [ "$sys" == "uos" ];then +if [ "$sys" == "UnionTech" ];then sed -i "s/kylin/$1/g" hgdriver/wrapper/CMakeLists.txt elif [ "$sys" == "kylin" ];then sed -i "s/uos/$1/g" hgdriver/wrapper/CMakeLists.txt