plan9port/bin/osxvers
2020-05-30 06:36:14 -04:00

7 lines
150 B
Bash
Executable file

#!/bin/sh
u=`uname`
case "$u" in
Darwin)
sw_vers -productVersion | awk -F. '{printf("CFLAGS=$CFLAGS -DOSX_VERSION=%d%02d%02d\n", $1, $2, $3)}'
esac