From 8e3f846911f0f3db67424821cb3cf1381d4b1aa5 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 9 Nov 2009 18:48:05 +0000 Subject: [PATCH] =?UTF-8?q?My=20idea=20of=20tidy,=20sorry=20Adam=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/brew | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/bin/brew b/bin/brew index 646357021e..d7356c7240 100755 --- a/bin/brew +++ b/bin/brew @@ -43,23 +43,27 @@ end def dump_config require 'hardware' bits = Hardware.is_64_bit? ? 64 : 32 - cores = Hardware.processor_count + cores = case Hardware.processor_count + when 1 then 'single' + when 2 then 'dual' + when 4 then 'quad' + else + Hardware.processor_count + end + llvm = llvm_build puts <<-EOS HOMEBREW_VERSION: #{HOMEBREW_VERSION} -HOMEBREW_PREFIX: #{HOMEBREW_PREFIX} -HOMEBREW_CELLAR: #{HOMEBREW_CELLAR} -HOMEBREW_CACHE: #{HOMEBREW_CACHE} +HOMEBREW_PREFIX: #{HOMEBREW_PREFIX} +HOMEBREW_CELLAR: #{HOMEBREW_CELLAR} +HOMEBREW_CACHE: #{HOMEBREW_CACHE} HOMEBREW_REPOSITORY: #{HOMEBREW_REPOSITORY} - Library path: #{$:.first} - -Hardware: #{Hardware.intel_family}, #{cores} cores, #{bits} bits - +Hardware: #{cores}-core #{bits}-bit #{Hardware.intel_family} OS X: #{MACOS_FULL_VERSION} Ruby: #{RUBY_VERSION}-#{RUBY_PATCHLEVEL} -GCC: build #{gcc_build} -LLVM: build #{llvm_build} +GCC: build #{gcc_build} +LLVM: #{llvm ? "build #{llvm}" : "N/A" } EOS end