mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
devdraw: handle, warn about Lion
R=rsc http://codereview.appspot.com/5069042
This commit is contained in:
parent
a59b2edeb3
commit
8bc80ada76
1 changed files with 9 additions and 1 deletions
|
@ -22,7 +22,12 @@ fi
|
||||||
|
|
||||||
if [ "x$WSYSTYPE" = "x" ]; then
|
if [ "x$WSYSTYPE" = "x" ]; then
|
||||||
if [ "x`uname`" = "xDarwin" ]; then
|
if [ "x`uname`" = "xDarwin" ]; then
|
||||||
|
if sw_vers | grep 'ProductVersion: 10\.[0-6]\.' >/dev/null; then
|
||||||
WSYSTYPE=osx
|
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
|
elif [ -d "$X11" ]; then
|
||||||
WSYSTYPE=x11
|
WSYSTYPE=x11
|
||||||
else
|
else
|
||||||
|
@ -53,6 +58,9 @@ elif [ $WSYSTYPE = osx ]; then
|
||||||
fi
|
fi
|
||||||
echo 'WSYSOFILES=$WSYSOFILES osx-screen-carbon-objc.o osx-draw.o osx-srv.o'
|
echo 'WSYSOFILES=$WSYSOFILES osx-screen-carbon-objc.o osx-draw.o osx-srv.o'
|
||||||
echo 'MACARGV=install-macargv'
|
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
|
elif [ $WSYSTYPE = nowsys ]; then
|
||||||
echo 'WSYSOFILES=nowsys.o'
|
echo 'WSYSOFILES=nowsys.o'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue