diff options
author | Russ Cox <rsc@swtch.com> | 2011-09-19 09:17:38 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-09-19 09:17:38 -0400 |
commit | 8bc80ada76144e66f47ca862ced6d03027a8090f (patch) | |
tree | 3254f6ecb5a783268b9829b8b2de6ba358d1fed6 /src | |
parent | a59b2edeb3f9ddfed173c772783774be0cd02cd4 (diff) | |
download | plan9port-8bc80ada76144e66f47ca862ced6d03027a8090f.tar.gz plan9port-8bc80ada76144e66f47ca862ced6d03027a8090f.tar.bz2 plan9port-8bc80ada76144e66f47ca862ced6d03027a8090f.zip |
devdraw: handle, warn about Lion
R=rsc
http://codereview.appspot.com/5069042
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/devdraw/mkwsysrules.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd/devdraw/mkwsysrules.sh b/src/cmd/devdraw/mkwsysrules.sh index 15fc61f9..4e587164 100644 --- a/src/cmd/devdraw/mkwsysrules.sh +++ b/src/cmd/devdraw/mkwsysrules.sh @@ -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 @@ -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 |