mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-29 07:01:59 +00:00
7fb48b29ca
Update arch in misc/setup for ioq3 changing from i386 to x86 OpenGL2: Use extension functions with OpenGL versions before 3.0. OpenGL2: Force VAO usage on OpenGL 3.0+ Add spawnflags to QUAKED for trigger_multiple Check for all command separators in callTeamVote Remove newlines from chat messages in Game VM Fix compiling Cmd_CallTeamVote_f Only allow safe protocols for cURL downloads Fix crash when pmove_msec is 0 Combine mouse movement events in event queue Improve keys using international key layouts Improve client input responsiveness Removing input functions from sys_local.h for last commit Make input events use earliest possible time Make bots use crusher on other q3tourney6 maps Make bots only use q3tourney6 crusher to kill their enemy
50 lines
874 B
Bash
Executable file
50 lines
874 B
Bash
Executable file
#!/bin/sh
|
|
|
|
readlink() {
|
|
local path=$1 ll
|
|
|
|
if [ -L "$path" ]; then
|
|
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
|
|
echo "${ll##* -> }"
|
|
else
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
script=$0
|
|
count=0
|
|
while [ -L "$script" ]
|
|
do
|
|
script=$(readlink "$script")
|
|
count=`expr $count + 1`
|
|
if [ $count -gt 100 ]
|
|
then
|
|
echo "Too many symbolic links"
|
|
exit 1
|
|
fi
|
|
done
|
|
cd "`dirname $script`"
|
|
|
|
|
|
lib=lib
|
|
test -e lib64 && lib=lib64
|
|
|
|
if test "x$LD_LIBRARY_PATH" = x; then
|
|
LD_LIBRARY_PATH="`pwd`/$lib"
|
|
else
|
|
LD_LIBRARY_PATH="`pwd`/$lib:$LD_LIBRARY_PATH"
|
|
fi
|
|
export LD_LIBRARY_PATH
|
|
|
|
archs=`uname -m`
|
|
case "$archs" in
|
|
i?86) archs=x86 ;;
|
|
x86_64) archs="x86_64 x86" ;;
|
|
ppc64) archs="ppc64 ppc" ;;
|
|
esac
|
|
|
|
for arch in $archs; do
|
|
test -x ./q3rally.$arch || continue
|
|
exec ./q3rally.$arch "$@"
|
|
done
|
|
echo "could not execute q3rally" >&2
|