r624 - trunk/code/unix/setup

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Mar 5 14:11:19 EST 2006


Author: ludwig
Date: 2006-03-05 14:11:19 -0500 (Sun, 05 Mar 2006)
New Revision: 624

Modified:
   trunk/code/unix/setup/ioq3demo.sh
Log:
merge fixes from ioquake3.sh


Modified: trunk/code/unix/setup/ioq3demo.sh
===================================================================
--- trunk/code/unix/setup/ioq3demo.sh	2006-03-05 19:10:49 UTC (rev 623)
+++ trunk/code/unix/setup/ioq3demo.sh	2006-03-05 19:11:19 UTC (rev 624)
@@ -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 +set sv_pure 0 +set vm_cgame 0 +set vm_game 0 +set vm_ui 0 +set fs_game demoq3 "$@"
+for arch in $archs; do
+	test -x ./ioquake3.$arch || continue
+	exec ./ioquake3.$arch +set sv_pure 0 +set vm_cgame 0 +set vm_game 0 +set vm_ui 0 +set fs_game demoq3 "$@"
+done
+echo "could not execute ioquake3" >&2




More information about the quake3-commits mailing list