mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
osxvers: use swvers -productVersion to skip one awk call
Fixes #406. Suggested by nms42.
This commit is contained in:
parent
01b5056135
commit
799f330f6d
1 changed files with 1 additions and 1 deletions
|
@ -3,5 +3,5 @@
|
|||
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)}'
|
||||
sw_vers -productVersion | awk -F. '{printf("CFLAGS=$CFLAGS -DOSX_VERSION=%d%02d%02d\n", $1, $2, $3)}'
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue