diff options
author | David Jeannot <djeannot24@gmail.com> | 2011-09-19 08:58:59 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-09-19 08:58:59 -0400 |
commit | 48107872baacadfc18527fda65e096c95424b13f (patch) | |
tree | b7df7caad4900bb05f5b3a478391ab8fa575dd52 /bin | |
parent | 53000799bec3a182fe5cc64424bc6302d1e6ba55 (diff) | |
download | plan9port-48107872baacadfc18527fda65e096c95424b13f.tar.gz plan9port-48107872baacadfc18527fda65e096c95424b13f.tar.bz2 plan9port-48107872baacadfc18527fda65e096c95424b13f.zip |
devdraw: update Lion cocoa
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5015042
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/osxvers | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/osxvers b/bin/osxvers new file mode 100755 index 00000000..4af44da2 --- /dev/null +++ b/bin/osxvers @@ -0,0 +1,7 @@ +#!/bin/sh + +u=`uname` +case "$u" in +Darwin) + sw_vers | awk '$1 == "ProductVersion:" {print $2}' | awk -F. '{printf("CFLAGS=$CFLAGS -DOSX_VERSION=%d%02d%02d\n", $1, $2, $3)}' +esac |