aboutsummaryrefslogtreecommitdiff
path: root/tools/mac-libs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mac-libs.rb')
-rwxr-xr-xtools/mac-libs.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/mac-libs.rb b/tools/mac-libs.rb
index 1a379f9..d8ddcab 100755
--- a/tools/mac-libs.rb
+++ b/tools/mac-libs.rb
@@ -47,9 +47,9 @@ def expand_load_path(lib, path)
get_rpaths(lib).each do |rpath|
file = File.join(rpath, file_name)
return file, :rpath if File.exist? file
- if rpath.match? /^@executable_path(.*)/
+ if rpath.match(/^@executable_path(.*)/) != nil
relative = rpath.sub(/^@executable_path/, "")
- return "#{$bundle}/Contents/MacOS#{relative}", :executable_path
+ return "#{$bundle}/Contents/MacOS#{relative}/#{file_name}", :executable_path
end
end
file = $fallback_rpaths
@@ -69,9 +69,6 @@ def expand_load_path(lib, path)
return File.absolute_path(path), :absolute
end
- puts lib
- puts path
- exit
return nil
end