Sign in
plan9port
/
plan9
/
32c6e78c6c4c13b63d8dc30aa395cfcc6e686c0a
/
.
/
bin
/
osxvers
blob: 4af44da24a4421a9db221ed83eec5a41b46e36eb [
file
] [
log
] [
blame
]
#!/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