Skip to content

Commit 59ef06f

Browse files
committed
I swear this is a new edge case
1 parent 7b79fa7 commit 59ef06f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

share/brewkit/fix-machos.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ def fix_install_names
150150
return if bad_names.empty?
151151

152152
def fix_tea_prefix s
153-
puts s
154153
s = Pathname.new(s).relative_path_from(Pathname.new($tea_prefix))
155154
s = s.sub(%r{/v(\d+)\.(\d+\.)+\d+[a-z]?/}, '/v\1/')
156-
s = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib') #FIXME we need to figure this out by resolving links and shit
157-
puts s
155+
156+
#FIXME we need to figure this out by resolving links and shit
157+
ss = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib')
158+
s = ss if File.exist? ss
159+
158160
s = "@rpath/#{s}"
159161
return s
160162
end

0 commit comments

Comments
 (0)