[macruby-changes] [2929] MacRuby/trunk/bin/ruby_deploy
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 30 12:05:51 PDT 2009
Revision: 2929
http://trac.macosforge.org/projects/ruby/changeset/2929
Author: lsansonetti at apple.com
Date: 2009-10-30 12:05:50 -0700 (Fri, 30 Oct 2009)
Log Message:
-----------
only deploy the Current version of MacRuby
Modified Paths:
--------------
MacRuby/trunk/bin/ruby_deploy
Modified: MacRuby/trunk/bin/ruby_deploy
===================================================================
--- MacRuby/trunk/bin/ruby_deploy 2009-10-30 06:50:54 UTC (rev 2928)
+++ MacRuby/trunk/bin/ruby_deploy 2009-10-30 19:05:50 UTC (rev 2929)
@@ -69,6 +69,14 @@
dirs << 'lib/ruby/Gems' # TODO add gems support
dirs.each { |x| rm_rf(File.join(app_macruby_usr, x)) }
+ # Only keep the Current version of the MacRuby.framework copy.
+ Dir.glob(File.join(app_macruby, 'Versions/*')).select { |x|
+ base = File.basename(x)
+ base != MACRUBY_VERSION and base != 'Current'
+ }.each { |x|
+ rm_rf(x)
+ }
+
# Hack the application binaries to link against the MacRuby.framework copy.
patterns = [File.join(@app_bundle, 'Contents/MacOS/*'), File.join(app_macruby_usr, 'lib/ruby/**/*.{bundle,rbo}')]
patterns.each do |pat|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091030/58d59724/attachment.html>
More information about the macruby-changes
mailing list