summaryrefslogtreecommitdiffstats
path: root/util/scripts/mac-binary/package/opensourceStuff
diff options
context:
space:
mode:
Diffstat (limited to 'util/scripts/mac-binary/package/opensourceStuff')
-rwxr-xr-xutil/scripts/mac-binary/package/opensourceStuff/InstallationCheck15
-rw-r--r--util/scripts/mac-binary/package/opensourceStuff/InstallationCheck.stringsbin0 -> 180 bytes
2 files changed, 15 insertions, 0 deletions
diff --git a/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck b/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck
new file mode 100755
index 0000000..f1cd8ad
--- /dev/null
+++ b/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# We need to do things differently on different platforms
+# <10.3.9 Can't install
+# =10.3.9 Can install, but must check license manually
+# >=10.4 Just jump out
+
+os_version=`sysctl kern.osrelease | awk '{ print $3 }'`
+os_major=`echo $os_version | cut -d . -f 1`
+os_minor=`echo $os_version | cut -d . -f 2`
+
+if [ $os_major -lt 7 -o $os_major -eq 7 -a $os_minor -lt 9 ]; then
+ exit $((96+19))
+fi
+exit 0
diff --git a/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck.strings b/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck.strings
new file mode 100644
index 0000000..4b82b30
--- /dev/null
+++ b/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck.strings
Binary files differ