summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index c91d4fff86..7d7dbd55f3 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -632,8 +632,13 @@ install?(:local, :comm, :man) do
class << (w = [])
alias print push
end
- open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
- w = w.join("")
+ if File.basename(mdoc).start_with?('bundle') ||
+ File.basename(mdoc).start_with?('gemfile')
+ w = File.read(mdoc)
+ else
+ open(mdoc) {|r| Mdoc2Man.mdoc2man(r, w)}
+ w = w.join("")
+ end
if compress
require 'tmpdir'
Dir.mktmpdir("man") {|d|