aboutsummaryrefslogtreecommitdiff
path: root/bin/osxvers
blob: 6ebeb11f3716946653f51d01b9ed0e25b8717a92 (plain)
1
2
3
4
5
6
7
#!/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