diff options
author | M0Rf30 | 2018-02-05 13:02:00 +0100 |
---|---|---|
committer | M0Rf30 | 2018-02-05 13:02:00 +0100 |
commit | 5a1aa60e2781342170a94a5cce390261acfe372c (patch) | |
tree | f501d1c46931cac811bdf80e29f0469b01d9a966 | |
parent | 9ad875c33d5f1dca426546986aed913a83e5282d (diff) | |
download | aur-5a1aa60e2781342170a94a5cce390261acfe372c.tar.gz |
xash3d-git: updated, but still to be reworked
-rwxr-xr-x | xash3d.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/xash3d.sh b/xash3d.sh deleted file mode 100755 index 7661218ce1b6..000000000000 --- a/xash3d.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -SCRIPT_DIR=${PWD##*/} -IS64BIT=$(getconf LONG_BIT) - -if [ "$IS64BIT" == "64" ]; then - LIBPREFIX="lib32" -else - LIBPREFIX="lib" -fi - -if [ "$SCRIPT_DIR" == "bin" ]; then -# Xash3D SDL is installed in system, so run it from lib/xash3d/ directory with Steam HL basedir if XASH3D_BASEDIR is not set - if [ -z "$XASH3D_BASEDIR" ]; then - export XASH3D_BASEDIR="$HOME/.steam/steam/steamapps/common/Half-Life/" - fi - echo "Xash3D SDL is installed in system." -fi - GAMEROOT=/usr/lib/xash3d - - -#determine platform -UNAME=`uname` -if [ "$UNAME" == "Darwin" ]; then - # prepend our lib path to LD_LIBRARY_PATH - export DYLD_LIBRARY_PATH=${GAMEROOT}:$DYLD_LIBRARY_PATH -elif [ "$UNAME" == "Linux" ]; then - # prepend our lib path to LD_LIBRARY_PATH - export LD_LIBRARY_PATH=${GAMEROOT}:$LD_LIBRARY_PATH -elif [ "$UNAME" == "FreeBSD" ]; then - export LD_LIBRARY_PATH=${GAMEROOT}:$LD_LIBRARY_PATH -fi - -if [ -z $GAMEEXE ]; then - if [ "$UNAME" == "Darwin" ]; then - GAMEEXE=xash3d - elif [ "$UNAME" == "Linux" ]; then - GAMEEXE=xash3d - elif [ "$UNAME" == "FreeBSD" ]; then - GAMEEXE=xash3d - fi -fi - -ulimit -n 2048 - -# and launch the game -cd "$GAMEROOT" - -STATUS=42 -while [ $STATUS -eq 42 ]; do - ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} $@ - STATUS=$? -done -exit $STATUS |