aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/create.rb2
-rw-r--r--Library/Homebrew/cmd/doctor.rb4
-rw-r--r--Library/Homebrew/cmd/edit.rb2
-rw-r--r--Library/Homebrew/cmd/tap.rb2
4 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index c41a80be3..06d45555d 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -118,7 +118,7 @@ class FormulaCreator
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
- # #{HOMEBREW_PREFIX}/Library/Contributions/example-formula.rb
+ # #{HOMEBREW_CONTRIB}/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class #{Formula.class_s name} < Formula
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index d41c539dc..b306b5850 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -926,7 +926,7 @@ def check_git_status
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
- cd #{HOMEBREW_REPOSITORY}/Library && git stash && git clean -d -f
+ cd #{HOMEBREW_LIBRARY} && git stash && git clean -d -f
EOS
end
end
@@ -1032,7 +1032,7 @@ def check_for_outdated_homebrew
timestamp = if File.directory? ".git"
`git log -1 --format="%ct" HEAD`.to_i
else
- (HOMEBREW_REPOSITORY/"Library").mtime.to_i
+ HOMEBREW_LIBRARY.mtime.to_i
end
if Time.now.to_i - timestamp > 60 * 60 * 24 then <<-EOS.undent
diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb
index f5635fa81..4e3298c3f 100644
--- a/Library/Homebrew/cmd/edit.rb
+++ b/Library/Homebrew/cmd/edit.rb
@@ -43,7 +43,7 @@ module Homebrew extend self
end
def library_folders
- Dir["#{HOMEBREW_REPOSITORY}/Library/*"].reject do |d|
+ Dir["#{HOMEBREW_LIBRARY}/*"].reject do |d|
case File.basename(d) when 'LinkedKegs', 'Aliases' then true end
end
end
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index 21ad00c6e..2b17629a5 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -83,7 +83,7 @@ module Homebrew extend self
def repair_taps
count = 0
# prune dead symlinks in Formula
- Dir["#{HOMEBREW_REPOSITORY}/Library/Formula/*.rb"].each do |fn|
+ Dir["#{HOMEBREW_LIBRARY}/Formula/*.rb"].each do |fn|
if not File.exist? fn
File.delete fn
count += 1