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

commit d67a8f8bdea1e64ec7370ab677e7b3e0b0d37920 Author: Ximin Luo <infinity0@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"
participants (1)
-
infinity0@torproject.org