Revision
5262
Author
lsansonetti@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

Diff

Modified: MacRuby/trunk/bin/ruby_deploy (5261 => 5262)


--- 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)