mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-14 12:19:43 +03:00
Manual pages: Update NAME section to contain all of the alternative names
Update the NAME section with all of the alternative names. All the different files are already built.
This commit is contained in:
1 parent
707aed35d3
commit
144f9c4381
1 file changed
+7
@@ -59,7 +59,14 @@ man7_MANS = $(MAN7)
|
||||
|
||||
.txt.3:
|
||||
$(A2X) --doctype manpage --format manpage $<
|
||||
@NEWLIST=`${SED} -ne '/^NAME/,/^SYNOPSIS/p;/^SYNOPSIS/q' $< | ${SED} 's/^- /\\\\\\\- /g' | egrep -v 'NAME|----|SYNOPSIS|^\$$' | tr '\n' ' '` ;\
|
||||
NAME=`echo $< | ${SED} -ne 's/^\(coap_[a-zA-Z_0-9]\+\).*$$/\1.3/p'` ;\
|
||||
${SED} -i '/.SH "NAME"/{n;d;}' $${NAME} ;\
|
||||
${SED} -i "/\.SH \"NAME\"/a $${NEWLIST}" $${NAME}
|
||||
$(A2X) --doctype manpage --format xhtml $<
|
||||
@NEWLIST=`${SED} -ne '/^NAME/,/^SYNOPSIS/p;/^SYNOPSIS/q' $< | ${SED} 's^/^\\\\/^g' | egrep -v 'NAME|----|SYNOPSIS|^\$$' | tr '\n' ' '` ;\
|
||||
NAME=`echo $< | ${SED} -ne 's/^\(coap_[a-zA-Z_0-9]\+\).*$$/\1.html/p'` ;\
|
||||
${SED} -i "s^Name</h2><p>.*</p></div>^Name</h2><p>$${NEWLIST}</p></div>^" $${NAME}
|
||||
|
||||
.txt.5:
|
||||
$(A2X) --doctype manpage --format manpage $<
|
||||
|
||||
Reference in new issue
Block a user