From db3daeb09f82bff89bdd007970e94caa5fa67a96 Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Sun, 21 Aug 2022 21:35:06 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Einstall-xash3ds.sh=E2=80=9C=20=C3=A4nd?= =?UTF-8?q?ern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-xash3ds.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/install-xash3ds.sh b/install-xash3ds.sh index f7c989e..a10e7b1 100644 --- a/install-xash3ds.sh +++ b/install-xash3ds.sh @@ -16,6 +16,15 @@ else XASHDS_PORT=$1 fi +if [ "$2" == "client" ] +then + CLIENT=true +else + CLIENT=false +fi + + + XASH3D_BASEDIR=$(pwd)/build mkdir -p $XASH3D_BASEDIR/result @@ -32,7 +41,16 @@ cd xash3d-fwgs ## old if you use deprecated xash3d ## cmake -DXASH_DEDICATED=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" ../ ## make -./waf configure -T release -d +if [ $CLIENT = false ] +then + WAF_OPTION="" +else + WAF_OPTION="-d" +fi + +WAF_OPTION + +./waf configure -T release $WAF_OPTION ./waf make ./waf install --destdir=bin/