r579 - trunk/code/unix/setup
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Feb 21 17:13:36 EST 2006
Author: ludwig
Date: 2006-02-21 17:13:36 -0500 (Tue, 21 Feb 2006)
New Revision: 579
Modified:
trunk/code/unix/setup/ioquake3.sh
Log:
fallback to 32bit binaries on 64bit biarchs if available
Modified: trunk/code/unix/setup/ioquake3.sh
===================================================================
--- trunk/code/unix/setup/ioquake3.sh 2006-02-21 22:12:55 UTC (rev 578)
+++ trunk/code/unix/setup/ioquake3.sh 2006-02-21 22:13:36 UTC (rev 579)
@@ -36,9 +36,15 @@
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
More information about the quake3-commits
mailing list