diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-03-05 19:11:19 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-03-05 19:11:19 +0000 |
commit | c4e93751802cc3252ea4ebae9a7ad8d9a2e8925d (patch) | |
tree | 234b5a38fb76fcad4b4b07282c4bdee9e73e1a6a /code | |
parent | c7087af08753a1735fb0a7a7ddbd8e5648fbd8e8 (diff) | |
download | ioquake3-aero-c4e93751802cc3252ea4ebae9a7ad8d9a2e8925d.tar.gz ioquake3-aero-c4e93751802cc3252ea4ebae9a7ad8d9a2e8925d.zip |
merge fixes from ioquake3.sh
git-svn-id: svn://svn.icculus.org/quake3/trunk@624 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/unix/setup/ioq3demo.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/code/unix/setup/ioq3demo.sh b/code/unix/setup/ioq3demo.sh index e022afe..05df7ff 100644 --- a/code/unix/setup/ioq3demo.sh +++ b/code/unix/setup/ioq3demo.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 +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 |