aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/keg_fix_install_names.rb
diff options
context:
space:
mode:
authorJack Nagel2013-12-04 22:37:57 -0600
committerJack Nagel2013-12-04 22:37:57 -0600
commit1a3eb21379f3a64cfeec5d67a54efdd3f4e24620 (patch)
tree4791b144c371c42636e14ee7a9e7e719c9caa329 /Library/Homebrew/keg_fix_install_names.rb
parent3e733aef7c4454e7ae376ff61a9bc62eb4caa915 (diff)
downloadhomebrew-1a3eb21379f3a64cfeec5d67a54efdd3f4e24620.tar.bz2
Insert placeholders for prefix and cellar in relocatable bottles
Diffstat (limited to 'Library/Homebrew/keg_fix_install_names.rb')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index 3c46c1a2f..80fdd8dde 100644
--- a/Library/Homebrew/keg_fix_install_names.rb
+++ b/Library/Homebrew/keg_fix_install_names.rb
@@ -1,4 +1,7 @@
class Keg
+ PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@".freeze
+ CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@".freeze
+
def fix_install_names options={}
mach_o_files.each do |file|
install_names_for(file, options) do |id, bad_names|