diff options
-rw-r--r-- | code/unix/setup/ioquake3.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/code/unix/setup/ioquake3.sh b/code/unix/setup/ioquake3.sh index 39c651c..0fd1295 100644 --- a/code/unix/setup/ioquake3.sh +++ b/code/unix/setup/ioquake3.sh @@ -36,9 +36,15 @@ else fi export LD_LIBRARY_PATH -arch=`uname -m` -case "$arch" in - i?86) arch=i386 ;; +archs=`uname -m` +case "$archs" in + i?86) archs=i386 ;; + x86_64) archs="x86_64 i386" ;; + ppc64) archs="ppc64 ppc" ;; esac -exec ./ioquake3.$arch "$@" +for arch in $archs; do + test -x ./ioquake3.$arch || continue + exec ./ioquake3.$arch "$@" +done +echo "could not execute ioquake3" >&2 |