]> git.ipfire.org Git - thirdparty/man-pages.git/commit
scripts/bash_aliases: Make man_lsfunc() more robust; Add sed_rm_ccomments().
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 9 May 2021 21:39:09 +0000 (23:39 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 9 May 2021 23:32:17 +0000 (11:32 +1200)
commit5ae99ccb427914e49bb1c03efb57673cafb57409
treef807cd1001890dc067834fa2055c48e7c6f6c348
parentb08daf3c0cb75fbbe7998f043b6d2bddd18cb3cf
scripts/bash_aliases: Make man_lsfunc() more robust; Add sed_rm_ccomments().

This patch makes man_lsfunc() search for the function prototypes,
instead of relying on the current manual page formatting,
which might change in the future, and break this function.

It also simplifies the code, by reusing man_section().

Create a new function sed_rm_ccomments(), which is needed by
man_lsfunc(), and may also be useful in other cases.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
scripts/bash_aliases