Created
March 8, 2011 21:49
-
-
Save netoneko/861156 to your computer and use it in GitHub Desktop.
patch to homebrew #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git show 5c42999e03cf5043d87f78db7e605467f96824de | |
commit 5c42999e03cf5043d87f78db7e605467f96824de | |
Author: netoneko <[email protected]> | |
Date: Wed Mar 9 02:28:33 2011 +0500 | |
works with standalone ruby | |
diff --git a/bin/brew b/bin/brew | |
index 836872a..c96e26a 100755 | |
--- a/bin/brew | |
+++ b/bin/brew | |
@@ -1,4 +1,4 @@ | |
-#!/usr/bin/ruby | |
+#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# Many Pathname operations use getwd when they shouldn't, and then throw | |
@@ -48,7 +48,7 @@ def dump_config | |
bits = Hardware.bits | |
cores = Hardware.cores_as_words | |
kernel_arch = `uname -m`.chomp | |
- system_ruby = Pathname.new("/usr/bin/ruby") | |
+ system_ruby = Pathname.new(`#{SystemCommand.which_s} ruby`.chomp) | |
llvm, llvm_msg = _compiler_recommendation llvm_build, RECOMMENDED_LLVM | |
gcc_42, gcc_42_msg = _compiler_recommendation gcc_42_build, RECOMMENDED_GCC_42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment