6
if [ -L "$path" ]; then
7
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
16
while [ -L "$script" ]
18
script=$(readlink "$script")
19
count=`expr $count + 1`
22
echo "Too many symbolic links"
26
cd "`dirname $script`"
30
test -e lib64 && lib=lib64
32
if test "x$LD_LIBRARY_PATH" = x; then
33
LD_LIBRARY_PATH="`pwd`/$lib"
35
LD_LIBRARY_PATH="`pwd`/$lib:$LD_LIBRARY_PATH"
37
export LD_LIBRARY_PATH
42
x86_64) archs="x86_64 i386" ;;
43
ppc64) archs="ppc64 ppc" ;;
46
for arch in $archs; do
47
test -x ./ioquake3.$arch || continue
48
exec ./ioquake3.$arch "$@"
50
echo "could not execute ioquake3" >&2