„install-xash3ds.sh“ ändern
This commit is contained in:
parent
e1cab1fee7
commit
db4fed8b31
1 changed files with 21 additions and 23 deletions
|
@ -9,36 +9,34 @@ metamod_url="https://github.com/mittorn/metamod-p/releases/download/1/metamod.so
|
||||||
amxmod_url="http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz"
|
amxmod_url="http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz"
|
||||||
jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz"
|
jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz"
|
||||||
|
|
||||||
if [ -z "$1" ]
|
if [ ! -z "$1" ]
|
||||||
then
|
then
|
||||||
XASHDS_PORT=27015
|
if [ "$1" == "client" ]
|
||||||
CLIENT=false
|
then
|
||||||
PACKAGES="build-essential ca-certificates cmake curl git gnupg2 g++-multilib lib32gcc1-s1 libstdc++6:i386 python unzip xz-utils zip"
|
CLIENT=true
|
||||||
else
|
PACKAGES="build-essential gcc-multilib g++-multilib python libsdl2-dev:i386 libfontconfig-dev:i386 libfreetype6-dev:i386"
|
||||||
CLIENT=true
|
WAF_OPTION=""
|
||||||
PACKAGES="build-essential gcc-multilib g++-multilib python libsdl2-dev:i386 libfontconfig-dev:i386 libfreetype6-dev:i386"
|
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
||||||
|
else
|
||||||
|
CLIENT=false
|
||||||
|
XASHDS_PORT=27015
|
||||||
|
CLIENT=false
|
||||||
|
PACKAGES="build-essential ca-certificates cmake curl git gnupg2 g++-multilib lib32gcc1-s1 libstdc++6:i386 python unzip xz-utils zip"
|
||||||
|
WAF_OPTION="-d"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if [ "$2" == "client" ]
|
|
||||||
#then
|
|
||||||
# CLIENT=true
|
|
||||||
#else
|
|
||||||
# CLIENT=false
|
|
||||||
#fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
XASH3D_BASEDIR=$(pwd)/build
|
XASH3D_BASEDIR=$(pwd)/build
|
||||||
mkdir -p $XASH3D_BASEDIR/result
|
mkdir -p $XASH3D_BASEDIR/result
|
||||||
|
|
||||||
# Prerequisits satisfied?
|
# Prerequisits satisfied?
|
||||||
if [ $CLIENT == false ]
|
#if [ $CLIENT == false ]
|
||||||
then
|
#then
|
||||||
WAF_OPTION="-d"
|
#
|
||||||
else
|
#else
|
||||||
WAF_OPTION=""
|
#
|
||||||
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
#fi
|
||||||
fi
|
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
apt-get install -y --no-install-recommends $PACKAGES
|
apt-get install -y --no-install-recommends $PACKAGES
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue