summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:36:39 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:36:39 +0000
commit3e3890a29fe00fa3e8cd5945a31cb490b92d0997 (patch)
tree9c16021038658a448ce42cedd54f30ceeaefdef8
parent65453bd7fef5d7059aa1212f3e918cc887e639a9 (diff)
merges r21477 from trunk into ruby_1_9_1.
* instruby.rb: require "tool/mdoc2man.rb" before chdir if needed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rwxr-xr-xinstruby.rb3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e5b4b2b1..a2f8d4285 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 13 03:07:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
+
Tue Jan 13 02:54:54 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
diff --git a/instruby.rb b/instruby.rb
index 4c1d345d4..40d21ee59 100755
--- a/instruby.rb
+++ b/instruby.rb
@@ -369,6 +369,7 @@ install?(:local, :comm, :man) do
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) == '.'}
@@ -386,8 +387,6 @@ install?(:local, :comm, :man) do
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