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`
|
u=`uname`
|
||||||
case "$u" in
|
case "$u" in
|
||||||
Darwin)
|
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
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue