aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/hardware.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-07 21:04:37 -0700
committerAdam Vandenberg2010-08-22 20:11:03 -0700
commit31f1fabd032c7546417c2b5a4e5b874831b32aaa (patch)
treeafa64652cf90d79c3cb2110e092eabcc5b9f5962 /Library/Homebrew/hardware.rb
parent2bc91fd69a3fa7e71d7df245cd07901afa0ed0a7 (diff)
downloadhomebrew-31f1fabd032c7546417c2b5a4e5b874831b32aaa.tar.bz2
Define "snow_leopard_64?"
snow_leopard_64? (defined in Hardware) is a short-cut for: MACOS_VERSION >= 10.6 and Hardware.is_64_bit? Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/hardware.rb')
-rw-r--r--Library/Homebrew/hardware.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb
index 3d76a74db..4c7924372 100644
--- a/Library/Homebrew/hardware.rb
+++ b/Library/Homebrew/hardware.rb
@@ -69,3 +69,7 @@ protected
$?.success? && result == 1 # sysctl call succeded and printed 1
end
end
+
+def snow_leopard_64?
+ MACOS_VERSION >= 10.6 and Hardware.is_64_bit?
+end