* 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
Родитель 72937eead8
Коммит 376004e9c4
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -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]

Просмотреть файл

@ -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?