aboutsummaryrefslogtreecommitdiffstats
path: root/make-macosx-ub.sh
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-06 18:58:40 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-06 18:58:40 +0000
commit46d0e6fb071edd9f843b64942f47762d18c09590 (patch)
tree91c83862f57ccaf90b710c5b598378df084e9484 /make-macosx-ub.sh
parent374c10ae51258be5b7c6a207e41361c783d56c59 (diff)
downloadioquake3-aero-46d0e6fb071edd9f843b64942f47762d18c09590.tar.gz
ioquake3-aero-46d0e6fb071edd9f843b64942f47762d18c09590.zip
Fixed TIGERHOST (it should apply to 10.5, too, or legacy binaries fail to
link). git-svn-id: svn://svn.icculus.org/quake3/trunk@1418 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'make-macosx-ub.sh')
-rwxr-xr-xmake-macosx-ub.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/make-macosx-ub.sh b/make-macosx-ub.sh
index d05566e..f612281 100755
--- a/make-macosx-ub.sh
+++ b/make-macosx-ub.sh
@@ -37,7 +37,10 @@ if [ ! -f Makefile ]; then
echo "This script must be run from the ioquake3 build directory";
fi
-TIGERHOST=`uname -r | grep ^8.`
+# We only care if we're >= 10.4, not if we're specifically Tiger.
+# "8" is the Darwin major kernel version.
+#TIGERHOST=`uname -r | grep ^8.`
+TIGERHOST=`uname -r |perl -w -p -e 's/\A(\d+)\..*\Z/$1/; $_ = (($_ >= 8) ? "1" : "0");'`
# we want to use the oldest available SDK for max compatiblity
unset PPC_CLIENT_SDK