Skip to content
Snippets Groups Projects
Commit 6b18d557 authored by Max Howell's avatar Max Howell
Browse files

Rename BREW_FILE HOMEBREW_BREW_FILE

Because it's a global.h constant and that file can be included by other projects.
parent 4266d6c1
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ else
HOMEBREW_CACHE=Pathname.new("~/Library/Caches/Homebrew").expand_path
end
HOMEBREW_PREFIX = Pathname.new(BREW_FILE).dirname.parent # Where we link under
HOMEBREW_REPOSITORY = Pathname.new(BREW_FILE).realpath.dirname.parent # Where .git is found
HOMEBREW_PREFIX = Pathname.new(HOMEBREW_BREW_FILE).dirname.parent # Where we link under
HOMEBREW_REPOSITORY = Pathname.new(HOMEBREW_BREW_FILE).realpath.dirname.parent # Where .git is found
# Where should be build to?
# If /usr/local/Cellar exists, as a symlink or real folder, use that.
......
#!/usr/bin/ruby
BREW_FILE = `which brew`.strip
HOMEBREW_BREW_FILE = `which brew`.strip
require 'global'
......
......@@ -5,7 +5,7 @@
# odd exceptions. Reduce our support burden by showing a user-friendly error.
Dir.getwd rescue abort "The current working directory doesn't exist, cannot proceed."
BREW_FILE = File.expand_path __FILE__
HOMEBREW_BREW_FILE = File.expand_path __FILE__
def homebrew_rubylib_path
lib_path = "/../../Library/Homebrew"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment