1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* instruby.rb (man, gem): fixed errors.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-01-07 13:12:32 +00:00
parent 72937eead8
commit 376004e9c4
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Jan 7 22:13:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* instruby.rb (man, gem): fixed errors.
Wed Jan 7 17:14:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* instruby.rb: use installed libraries. [ruby-core:21006]

View file

@ -397,7 +397,9 @@ install?(:local, :comm, :man) do
else
require File.join(srcdir, "tool/mdoc2man.rb")
Tempfile.open(mdoc) do |w|
w = nil
Tempfile.open(mdoc) do |f|
w = f
open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
end
install w.path, destfile, :mode => $data_mode
@ -409,8 +411,9 @@ end
install?(:local, :comm, :gem) do
puts "creating default gem directories"
directories = %w[cache doc gems specifications]
gpath = CONFIG["sitelibdir"].sub(%r'/site_ruby/(?=[^/]+)', '/gems/')
makedirs Gem::DIRECTORIES.collect {|dir| File.join(gpath, dir)}
makedirs directories.collect {|dir| File.join(gpath, dir)}
end
$install << :local << :ext if $install.empty?