[前][次][番号順一覧][スレッド一覧]

ruby-changes:9936

From: usa <ko1@a...>
Date: Tue, 13 Jan 2009 03:08:18 +0900 (JST)
Subject: [ruby-changes:9936] Ruby:r21477 (trunk): * instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.

usa	2009-01-13 03:08:02 +0900 (Tue, 13 Jan 2009)

  New Revision: 21477

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21477

  Log:
    * instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.

  Modified files:
    trunk/ChangeLog
    trunk/instruby.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21476)
+++ ChangeLog	(revision 21477)
@@ -1,3 +1,7 @@
+Tue Jan 13 03:07:28 2009  NAKAMURA Usaku  <usa@r...>
+
+	* instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
+
 Tue Jan 13 02:54:54 2009  NAKAMURA Usaku  <usa@r...>
 
 	* ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
Index: instruby.rb
===================================================================
--- instruby.rb	(revision 21476)
+++ instruby.rb	(revision 21477)
@@ -430,6 +430,7 @@
   puts "installing manpages"
 
   has_goruby = File.exist?(goruby_install_name+exeext)
+  require File.join(srcdir, "tool/mdoc2man.rb") if $mantype != "doc"
   Dir.chdir("#{srcdir}/man")
   for mdoc in Dir["*.[1-9]"]
     next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'}
@@ -447,8 +448,6 @@
     if $mantype == "doc"
       install mdoc, destfile, :mode => $data_mode
     else
-      require File.join(srcdir, "tool/mdoc2man.rb")
-
       w = nil
       Tempfile.open(mdoc) do |f|
         w = f

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]