From 1e8cd2c27755bac4086489e9a6eed19bf4d72d45 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 12 May 2014 19:59:44 -0700 Subject: Moved osx package stuff to osx directory; added uninstall script. Thanks to Daniel T. Staal for an uninstall script from which this one is modified. --- osx/osx-resources/InstallationCheck | 14 ++++++++++++++ osx/osx-resources/InstallationCheck.strings | 3 +++ 2 files changed, 17 insertions(+) create mode 100755 osx/osx-resources/InstallationCheck create mode 100644 osx/osx-resources/InstallationCheck.strings (limited to 'osx/osx-resources') diff --git a/osx/osx-resources/InstallationCheck b/osx/osx-resources/InstallationCheck new file mode 100755 index 000000000..2bd691f5c --- /dev/null +++ b/osx/osx-resources/InstallationCheck @@ -0,0 +1,14 @@ +#!/bin/sh +cputype=`/usr/sbin/sysctl -n hw.cputype` +sixtyfourbit=`/usr/sbin/sysctl -n hw.cpu64bit_capable` + +if [ "x$cputype" != "x7" ] # x86 +then + exit 112 +fi + +if [ "x$sixtyfourbit" != "x1" ] # 64 bit +then + exit 113 +fi + diff --git a/osx/osx-resources/InstallationCheck.strings b/osx/osx-resources/InstallationCheck.strings new file mode 100644 index 000000000..6c8efe0d4 --- /dev/null +++ b/osx/osx-resources/InstallationCheck.strings @@ -0,0 +1,3 @@ +"16" = "This installer works only on Intel Macs."; +"17" = "This installer requires a 64-bit processor."; + -- cgit v1.2.3