We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b79fa7 commit 59ef06fCopy full SHA for 59ef06f
share/brewkit/fix-machos.rb
@@ -150,11 +150,13 @@ def fix_install_names
150
return if bad_names.empty?
151
152
def fix_tea_prefix s
153
- puts s
154
s = Pathname.new(s).relative_path_from(Pathname.new($tea_prefix))
155
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
+
+ #FIXME we need to figure this out by resolving links and shit
+ ss = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib')
158
+ s = ss if File.exist? ss
159
160
s = "@rpath/#{s}"
161
return s
162
end
0 commit comments