summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-02 01:56:43 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-02 01:56:43 (GMT)
commit92b469e7da896ff21cc18f6ab2892a4794ea0e34 (patch)
tree9ba75415a0da085a19814d13a51c366a2afbce9e /tool
parent6b4d78fc438afd5b89b49d8e32152f4a53deb4bc (diff)
Install HTML docs if produced
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index a3361e6..5687a68 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -42,6 +42,7 @@ def parse_args(argv = ARGV)
$installed_list = nil
$dryrun = false
$rdocdir = nil
+ $htmldir = nil
$data_mode = 0644
$prog_mode = 0755
$dir_mode = nil
@@ -80,6 +81,7 @@ def parse_args(argv = ARGV)
end
opt.on('--installed-list [FILENAME]') {|name| $installed_list = name}
opt.on('--rdoc-output [DIR]') {|dir| $rdocdir = dir}
+ opt.on('--html-output [DIR]') {|dir| $htmldir = dir}
opt.on('--cmd-type=TYPE', %w[cmd plain]) {|cmd| $cmdtype = (cmd unless cmd == 'plain')}
opt.on('--[no-]strip') {|strip| $strip = strip}
@@ -134,6 +136,7 @@ def parse_args(argv = ARGV)
end
$rdocdir ||= $mflags.defined?('RDOCOUT')
+ $htmldir ||= $mflags.defined?('HTMLOUT')
$dir_mode ||= $prog_mode | 0700
$script_mode ||= $prog_mode
@@ -421,6 +424,12 @@ install?(:doc, :rdoc) do
install_recursive($rdocdir, ridatadir, :mode => $data_mode)
end
end
+install?(:doc, :html) do
+ if $htmldir
+ prepare "html-docs", docdir
+ install_recursive($htmldir, docdir+"/html", :mode => $data_mode)
+ end
+end
install?(:doc, :capi) do
prepare "capi-docs", docdir
install_recursive "doc/capi", docdir+"/capi", :mode => $data_mode