History

scripts: kernel-doc: Add the basic POD sections

The NAME section provides the doc title, while SYNOPSIS contains the basic syntax and usage description, which will be printed in the help document and in the error output produced on wrong script usage. The rationale is to give users simple and succinct enlightment, at the same time structuring the script internally for the maintainers. In the synopsis, Rst-only options are grouped around rst, and the rest is arranged as in the OPTIONS subsections (yet to be translated into POD, check at the end of the series). The third of the basic sections, DESCRIPTION, is added separately.

Tomasz Warniełło committed 4 years ago

Commit a5cdaea1 parent 62a40da1 file · +25 −0Browse files

Unified · Split

scripts/kernel-doc+25−0
@@ -16,6 +16,31 @@ use strict; · 15 unmodified lines
1616 ## This software falls under the GNU General Public License. ##
1717 ## Please read the COPYING file for more information ##
1818
19+=head1 NAME
20+
21+kernel-doc - Print formatted kernel documentation to stdout
22+
23+=head1 SYNOPSIS
24+
25+ kernel-doc [-h] [-v] [-Werror]
26+ [ -man |
27+ -rst [-sphinx-version VERSION] [-enable-lineno] |
28+ -none
29+ ]
30+ [
31+ -export |
32+ -internal |
33+ [-function NAME] ... |
34+ [-nosymbol NAME] ...
35+ ]
36+ [-no-doc-sections]
37+ [-export-file FILE] ...
38+ FILE ...
39+
40+Run `kernel-doc -h` for details.
41+
42+=cut
43+
1944 # 18/01/2001 - Cleanups
2045 # Functions prototyped as foo(void) same as foo()
2146 # Stop eval'ing where we don't need to.