tdevdraw: handle, warn about Lion - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8bc80ada76144e66f47ca862ced6d03027a8090f
DIR parent a59b2edeb3f9ddfed173c772783774be0cd02cd4
HTML Author: Russ Cox <rsc@swtch.com>
Date: Mon, 19 Sep 2011 09:17:38 -0400
devdraw: handle, warn about Lion
R=rsc
http://codereview.appspot.com/5069042
Diffstat:
M src/cmd/devdraw/mkwsysrules.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/devdraw/mkwsysrules.sh b/src/cmd/devdraw/mkwsysrules.sh
t@@ -22,7 +22,12 @@ fi
if [ "x$WSYSTYPE" = "x" ]; then
if [ "x`uname`" = "xDarwin" ]; then
- WSYSTYPE=osx
+ if sw_vers | grep 'ProductVersion: 10\.[0-6]\.' >/dev/null; then
+ WSYSTYPE=osx
+ else
+ echo 1>&2 'WARNING: OS X Lion is not working. Copy binaries from a Snow Leopard system.'
+ WSYSTYPE=osx-cocoa
+ fi
elif [ -d "$X11" ]; then
WSYSTYPE=x11
else
t@@ -53,6 +58,9 @@ elif [ $WSYSTYPE = osx ]; then
fi
echo 'WSYSOFILES=$WSYSOFILES osx-screen-carbon-objc.o osx-draw.o osx-srv.o'
echo 'MACARGV=install-macargv'
+elif [ $WSYSTYPE = osx-cocoa ]; then
+ echo 'WSYSOFILES=$WSYSOFILES osx-draw.o cocoa-screen-objc.o cocoa-srv.o cocoa-thread.o'
+ echo 'MACARGV=install-macargv'
elif [ $WSYSTYPE = nowsys ]; then
echo 'WSYSOFILES=nowsys.o'
fi