mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Support regex both BSD and GNU generating man pages
This commit is contained in:
parent
8e93041205
commit
75cdaf5601
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ if test "$RESULT" = 0 ; then
|
|||
-e "s/^\\.SH \"\(.*\)\"/\\.SH \1\\n/"
|
||||
sed < ${CMD_NAME}.1.tmp-delete-quote > ${CMD_NAME}.1.tmp-bold \
|
||||
-e "s/^\\.SH \("$CMD_NAME"\) \\-/\\.SH \\\fB\1\\\fP \\-/"
|
||||
sed < ${CMD_NAME}.1.tmp-bold > ${CMD_NAME}.1.tmp-shape \
|
||||
-z "s/\\.SH NAME\\n$CMD_NAME \\\- \\n\\.SH /\\.SH NAME\\n/"
|
||||
cat ${CMD_NAME}.1.tmp-bold | perl -0pe \
|
||||
"s/.SH NAME\n$CMD_NAME \\\- \n.SH /.SH NAME\n/m" > ${CMD_NAME}.1.tmp-shape
|
||||
cp "${CMD_NAME}.1.tmp-shape" "${CMD_NAME}.1"
|
||||
rm "${CMD_NAME}.1.tmp-delete-quote" "${CMD_NAME}.1.tmp-bold" "${CMD_NAME}.1.tmp-shape"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue