3 # The caller must pass args: -v hfile=help-NAME.h NAME.NUM.md
6 heading =
"/* DO NOT EDIT THIS FILE! It is auto-generated from the option list in " ARGV[1] "! */"
8 sub("\\.", "\\.", findcomment
)
9 findcomment =
"\\[comment\\].*" findcomment
20 if (backtick_cnt
> 1) exit
21 if (backtick_cnt ==
1) {
23 prints = prints "\n rprintf
(F
,\"" $0 "\\n
\");"
34 if (foundcomment && backtick_cnt > 1)
35 print heading "\n" prints > hfile
37 print "Failed to find
" hfile " section in
" ARGV[1]