[tor-commits] [flashproxy/master] fix bug that was causing mkman to screw with the section headings

infinity0 at torproject.org infinity0 at torproject.org
Thu Feb 13 14:11:33 UTC 2014


commit d67a8f8bdea1e64ec7370ab677e7b3e0b0d37920
Author: Ximin Luo <infinity0 at torproject.org>
Date:   Thu Feb 13 14:05:49 2014 +0000

    fix bug that was causing mkman to screw with the section headings
---
 mkman.sh |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mkman.sh b/mkman.sh
index 107466c..40bc372 100755
--- a/mkman.sh
+++ b/mkman.sh
@@ -25,13 +25,13 @@ EOF
 # Fixes some help2man quirks, see `man man`
 help2man_fixup() {
 	sed -e '
-# restricted to usage synopsis section
-/^\.SH SYNOPSIS$/,/^\.SH [A-Z][A-Z]*$/{
+# restricted to usage parameters
+/^\.SH SYNOPSIS$/,/^\.SH [A-Z][A-Z]*$/{/^[^.]/{
 	# change hypenated parameters to bold, "type exactly as shown"
 	s/\\fI\-/\\fB\-/g;
 	# change ALL-CAPS parameters to italic, "replace with appropriate argument"
 	s/\b\([A-Z][A-Z]*\)\b/\\fI\1\\fR/g;
-}'
+}}'
 }
 
 prog="$1"





More information about the tor-commits mailing list