diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/osxvers | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/osxvers b/bin/osxvers new file mode 100755 index 00000000..4af44da2 --- /dev/null +++ b/bin/osxvers @@ -0,0 +1,7 @@ +#!/bin/sh + +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)}' +esac |