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

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 14 14:45:39 PDT 2008


Revision: 441
          http://trac.macosforge.org/projects/ruby/changeset/441
Author:   rich at infoether.com
Date:     2008-08-14 14:45:39 -0700 (Thu, 14 Aug 2008)
Log Message:
-----------
add data dir installation

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

Modified: MacRuby/trunk/instruby.rb
===================================================================
--- MacRuby/trunk/instruby.rb	2008-08-14 21:37:35 UTC (rev 440)
+++ MacRuby/trunk/instruby.rb	2008-08-14 21:45:39 UTC (rev 441)
@@ -43,7 +43,7 @@
     $mflags.concat(v)
   end
   opt.on('-i', '--install=TYPE',
-         [:local, :bin, :"bin-arch", :"bin-comm", :lib, :man, :ext, :"ext-arch", :"ext-comm", :rdoc]) do |ins|
+         [:local, :bin, :"bin-arch", :"bin-comm", :lib, :man, :ext, :"ext-arch", :"ext-comm", :rdoc, :data]) do |ins|
     $install << ins
   end
   opt.on('--data-mode=OCTAL-MODE', OptionParser::OctalInteger) do |mode|
@@ -210,6 +210,7 @@
 version = CONFIG["ruby_version"]
 bindir = CONFIG["bindir"]
 libdir = CONFIG["libdir"]
+datadir = CONFIG['datadir']
 archhdrdir = rubyhdrdir = CONFIG["rubyhdrdir"]
 archhdrdir += "/" + CONFIG["arch"]
 rubylibdir = CONFIG["rubylibdir"]
@@ -402,6 +403,14 @@
   end
 end
 
+install?(:local, :data) do
+  puts "installing data files"
+  destination_dir = datadir.clone
+  Config.expand(destination_dir)
+  makedirs [destination_dir]
+  install_recursive("data", destination_dir, :mode => $data_mode)
+end  
+
 $install << :local << :ext if $install.empty?
 $install.each do |inst|
   if !(procs = $install_procs[inst]) || procs.empty?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080814/bca068c3/attachment.html 


More information about the macruby-changes mailing list