[macruby-changes] [5262] MacRuby/trunk/bin/ruby_deploy
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 7 14:11:43 PST 2011
Revision: 5262
http://trac.macosforge.org/projects/ruby/changeset/5262
Author: lsansonetti at apple.com
Date: 2011-03-07 14:11:42 -0800 (Mon, 07 Mar 2011)
Log Message:
-----------
during --embed, fix the libmacruby dyld identification name, to conform to App Store submission rules (patch by rsepulveda2 at gmail.com)
Modified Paths:
--------------
MacRuby/trunk/bin/ruby_deploy
Modified: MacRuby/trunk/bin/ruby_deploy
===================================================================
--- MacRuby/trunk/bin/ruby_deploy 2011-03-07 22:03:22 UTC (rev 5261)
+++ MacRuby/trunk/bin/ruby_deploy 2011-03-07 22:11:42 UTC (rev 5262)
@@ -214,6 +214,13 @@
execute("#{@install_name_tool} -change #{macruby_usr}/lib/libmacruby.dylib @executable_path/../Frameworks/MacRuby.framework/Versions/#{@macruby_install_version}/usr/lib/libmacruby.dylib '#{bin}'")
end
end
+ log "Fix identification name of libmacruby"
+ patterns = [ File.join(app_macruby_usr, 'lib/libmacruby*.dylib') ]
+ patterns.each do |pat|
+ Dir.glob(pat).each do |bin|
+ execute("#{@install_name_tool} -id @executable_path/../Frameworks/MacRuby.framework/Versions/#{@macruby_install_version}/usr/lib/libmacruby.dylib '#{bin}'")
+ end
+ end
end
def execute(line, error_message = nil)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110307/ca077af9/attachment.html>
More information about the macruby-changes
mailing list