summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 05:55:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 05:55:28 +0000
commit9cd5c850a4d92c0fc6b5cd68331f5280453f90d3 (patch)
treeab9c29b952c998bb6ee798c2cb8447c6e2d11c5c
parenta27564377f2c52189860b1c1d6bbdd2c55725397 (diff)
ruby.1: fix --enable/disable
* man/ruby.1: missing Fl before --{enable|disable}. * tool/mdoc2man.rb (parse_macro): supprot braces, Bro and Brc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--man/ruby.14
-rwxr-xr-xtool/mdoc2man.rb7
2 files changed, 9 insertions, 2 deletions
diff --git a/man/ruby.1 b/man/ruby.1
index 5f13a0f..5782882 100644
--- a/man/ruby.1
+++ b/man/ruby.1
@@ -1,5 +1,5 @@
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
-.Dd December 15, 2014
+.Dd October 31, 2015
.Dt RUBY(1) "" "Ruby Programmers Reference Guide"
.\".Dt RUBY 1
.Os UNIX
@@ -23,7 +23,7 @@
.Op Fl i Ns Op Ar extension
.Op Fl r Ar library
.Op Fl x Ns Op Ar directory
-.Op - Ns Bro Cm enable Ns | Ns Cm disable Brc Ns - Ns Ar FEATURE
+.Op Fl - Ns Bro Cm enable Ns | Ns Cm disable Brc Ns - Ns Ar FEATURE
.Op Fl -dump Ns = Ns Ar target
.Op Fl -verbose
.Op Fl -
diff --git a/tool/mdoc2man.rb b/tool/mdoc2man.rb
index 274f2d5..1e6962a 100755
--- a/tool/mdoc2man.rb
+++ b/tool/mdoc2man.rb
@@ -235,6 +235,13 @@ class Mdoc2Man
when 'Ux'
retval << "UNIX"
next
+ when 'Bro'
+ retval << '{'
+ @nospace = 1 if @nospace == 0
+ next
+ when 'Brc'
+ retval.sub!(/ *\z/, '}')
+ next
end
if @reference