diff options
-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 |