1 # Convert help for ginsh functions from man page to C source
2 /GINSH_FCN_HELP_START/,/GINSH_FCN_HELP_END/{
4 # .BI lines contain the function synopsis
7 # extract function name
9 s/\.BI \(.*\)(.*/insert_help("\1",/p
19 # handle multi-line synopsis
23 # \- lines contain the function description
31 # .br lines start the next function