aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-07-15 19:33:30 +0100
committerGitHub2016-07-15 19:33:30 +0100
commita07ab8bb92da082078203301a22eef68eaf3d0ac (patch)
tree49776d1f60832106a5c5d2bdddb4f263ad6ea05d
parenta02be9eea204264ce48827ac365c8b53b986d66a (diff)
downloadbrew-a07ab8bb92da082078203301a22eef68eaf3d0ac.tar.bz2
brew.{rb,sh}: move to Library/Homebrew. (#506)
-rw-r--r--Library/Homebrew/brew.rb (renamed from Library/brew.rb)2
-rw-r--r--Library/Homebrew/brew.sh (renamed from Library/brew.sh)2
-rw-r--r--Library/Homebrew/cmd/update.sh2
-rw-r--r--Library/Homebrew/test/.simplecov2
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb2
-rwxr-xr-xbin/brew2
6 files changed, 6 insertions, 6 deletions
diff --git a/Library/brew.rb b/Library/Homebrew/brew.rb
index 9110d5db0..9d29f4396 100644
--- a/Library/brew.rb
+++ b/Library/Homebrew/brew.rb
@@ -1,7 +1,7 @@
std_trap = trap("INT") { exit! 130 } # no backtrace thanks
require "pathname"
-HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent.join("Homebrew")
+HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent
$:.unshift(HOMEBREW_LIBRARY_PATH.to_s)
require "global"
diff --git a/Library/brew.sh b/Library/Homebrew/brew.sh
index 5dd1ce630..dd9e54e7e 100644
--- a/Library/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -245,5 +245,5 @@ else
# Unshift command back into argument list (unless argument list was empty).
[[ "$HOMEBREW_ARG_COUNT" -gt 0 ]] && set -- "$HOMEBREW_COMMAND" "$@"
- { update-preinstall; exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/brew.rb" "$@"; }
+ { update-preinstall; exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/Homebrew/brew.rb" "$@"; }
fi
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index 49a15864f..e9ad69c06 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -9,7 +9,7 @@
# shellcheck source=/dev/null
source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
-# Replaces the function in Library/brew.sh to cache the Git executable to
+# Replaces the function in Library/Homebrew/brew.sh to cache the Git executable to
# provide speedup when using Git repeatedly (as update.sh does).
git() {
if [[ -z "$GIT_EXECUTABLE" ]]
diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov
index 3dec7d3b7..b3f87cfdb 100644
--- a/Library/Homebrew/test/.simplecov
+++ b/Library/Homebrew/test/.simplecov
@@ -34,7 +34,7 @@ SimpleCov.start do
add_group "OS", "/Homebrew/os/"
add_group "Requirements", "/Homebrew/requirements/"
add_group "Scripts", %w[
- /brew.rb
+ /Homebrew/brew.rb
/Homebrew/build.rb
/Homebrew/postinstall.rb
/Homebrew/test.rb
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb
index 642fadf5f..c020deaf4 100644
--- a/Library/Homebrew/test/test_integration_cmds.rb
+++ b/Library/Homebrew/test/test_integration_cmds.rb
@@ -64,7 +64,7 @@ class IntegrationCommandTests < Homebrew::TestCase
cmd_args << "-rsimplecov"
end
cmd_args << "-rintegration_mocks"
- cmd_args << (HOMEBREW_LIBRARY_PATH/"../brew.rb").resolved_path.to_s
+ cmd_args << (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path.to_s
cmd_args += args
Bundler.with_original_env do
ENV["HOMEBREW_BREW_FILE"] = HOMEBREW_PREFIX/"bin/brew"
diff --git a/bin/brew b/bin/brew
index 77611c153..0fabbb97e 100755
--- a/bin/brew
+++ b/bin/brew
@@ -25,4 +25,4 @@ fi
HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
-source "$HOMEBREW_LIBRARY/brew.sh"
+source "$HOMEBREW_LIBRARY/Homebrew/brew.sh"