From 834f344f1d55c2c328a7de42138276649b69cb12 Mon Sep 17 00:00:00 2001 From: David Adam Date: Fri, 15 Dec 2017 09:53:15 +0800 Subject: [PATCH] build_documentation: postprocess regular expression uses command name The previous regular expression only matched the `abbr` text and was used in testing. --- build_tools/build_documentation.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_tools/build_documentation.sh b/build_tools/build_documentation.sh index 3e1f6ede1..aefd43f62 100755 --- a/build_tools/build_documentation.sh +++ b/build_tools/build_documentation.sh @@ -135,9 +135,9 @@ if test "$RESULT" = 0 ; then CMD_NAME=`basename "$i" .txt`; sed -E < ${CMD_NAME}.1 > ${CMD_NAME}.1.tmp \ -e "/^.SH NAME/{ - N; N - s/abbr \\\\- \n.SH \"abbr (- .*)\"/\\\fBabbr\\\fP \1/g - }" + N; N + s/${CMD_NAME} \\\\- \n.SH \"${CMD_NAME} (- .*)\"/\\\fB${CMD_NAME}\\\fP \1/g + }" mv "${CMD_NAME}.1.tmp" "${CMD_NAME}.1" done