Skip to content

Commit 1a8536c

Browse files
committed
Transform the manpages using the given substitution
1 parent de1feea commit 1a8536c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tool/rbinstall.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,6 @@ def (bins = []).add(name)
10211021
prepare "manpages", mandir, ([] | mdocs.collect {|mdoc| mdoc[/\d+$/]}).sort.collect {|sec| "man#{sec}"}
10221022

10231023
mantype, suffix, compress = Compressors.for($mantype)
1024-
mandir = File.join(mandir, "man")
10251024
has_goruby = File.exist?(goruby_install_name+exeext)
10261025
require File.join(srcdir, "tool/mdoc2man.rb") if /\Adoc\b/ !~ mantype
10271026
mdocs.each do |mdoc|
@@ -1031,8 +1030,8 @@ def (bins = []).add(name)
10311030
next unless has_goruby
10321031
end
10331032

1034-
destdir = mandir + (section = mdoc[/\d+$/])
1035-
destname = ruby_install_name.sub(/ruby/, base.chomp(".#{section}"))
1033+
destdir = File.join(mandir, "man" + (section = mdoc[/\d+$/]))
1034+
destname = $script_installer.transform(base.chomp(".#{section}"))
10361035
destfile = File.join(destdir, "#{destname}.#{section}")
10371036

10381037
if /\Adoc\b/ =~ mantype or !mdoc_file?(mdoc)

0 commit comments

Comments
 (0)