[macruby-changes] [111] MacRuby/trunk/instruby.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 20 10:25:11 PDT 2008


Revision: 111
          http://trac.macosforge.org/projects/ruby/changeset/111
Author:   lsansonetti at apple.com
Date:     2008-03-20 10:25:10 -0700 (Thu, 20 Mar 2008)

Log Message:
-----------
code cleanup

Modified Paths:
--------------
    MacRuby/trunk/instruby.rb

Modified: MacRuby/trunk/instruby.rb
===================================================================
--- MacRuby/trunk/instruby.rb	2008-03-20 02:03:32 UTC (rev 110)
+++ MacRuby/trunk/instruby.rb	2008-03-20 17:25:10 UTC (rev 111)
@@ -431,6 +431,7 @@
 
 if RUBY_FRAMEWORK
   puts "installing framework"
+  # Creating framework infrastructure.
   base = File.join(CONFIG["prefix"], '..')
   resources = File.join(base, 'Resources')
   mkdir_p resources, :mode => 0755
@@ -448,6 +449,7 @@
   ln_sfh "usr/include/ruby-#{RUBY_VERSION}", File.join(base, 'Headers')
   ln_sfh "../#{CONFIG['arch']}/ruby/config.h", 
     File.join(base, "usr/include/ruby-#{RUBY_VERSION}/ruby/config.h")
+  # Installing executable links.
   dest_bin = '/usr/local/bin'
   mkdir_p dest_bin, :mode => 0755
   Dir.entries(CONFIG['bindir']).each do |bin|
@@ -456,6 +458,7 @@
     link.sub!(/#{MACRUBY_VERSION}/, 'Current')
     ln_sfh link, File.join(dest_bin, File.basename(bin))
   end
+  # Installing man pages links.
   dest_man = '/usr/local/share/man'
   mkdir_p dest_man, :mode => 0755
   Dir.entries(CONFIG['mandir']).each do |mandir|
@@ -466,7 +469,8 @@
         next if man[0] == '.'
         link = File.join("../../../../../", CONFIG['mandir'], mandir, man)
         link.sub!(/#{MACRUBY_VERSION}/, 'Current')
-        ln_sfh link, File.join(dest_man, File.basename(mandir), File.basename(man))
+        ln_sfh link, File.join(dest_man, File.basename(mandir), 
+	  File.basename(man))
       end
     else
       link = File.join("../../../../", CONFIG['mandir'], mandir)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080320/77805f89/attachment.html 


More information about the macruby-changes mailing list