plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 799f330f6de8ff65a7bdf7e0d1b12cd3c10981ba
parent 01b505613590f3107c4a8849b18da2cbefd98466
Author: Russ Cox <rsc@swtch.com>
Date:   Sat, 30 May 2020 06:35:27 -0400

osxvers: use swvers -productVersion to skip one awk call

Fixes #406. Suggested by nms42.

Diffstat:
Mbin/osxvers | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/osxvers b/bin/osxvers @@ -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