lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7852b505-a65a-6cdd-29a8-3bc966dfc750@infradead.org>
Date:   Mon, 21 Feb 2022 22:10:22 -0800
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Tomasz Warniełło <tomasz.warniello@...il.com>,
        corbet@....net
Cc:     linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 01/11] scripts: kernel-doc: Add the basic POD sections



On 2/18/22 10:16, Tomasz Warniełło wrote:
> 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.
> 
> Signed-off-by: Tomasz Warniełło <tomasz.warniello@...il.com>
> ---
>  scripts/kernel-doc | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/scripts/kernel-doc b/scripts/kernel-doc
> index 3106b7536b89..c8fbf1d3d5aa 100755
> --- a/scripts/kernel-doc
> +++ b/scripts/kernel-doc
> @@ -16,6 +16,31 @@ use strict;
>  ## This software falls under the GNU General Public License.     ##
>  ## Please read the COPYING file for more information             ##
>  
> +=head1 NAME
> +
> +kernel-doc - Print formatted kernel documentation to stdout
> +
> +=head1 SYNOPSIS
> +
> + kernel-doc [-h] [-v] [-Werror]
> +   [ -man |
> +     -rst [-sphinx-version VERSION] [-enable-lineno] |
> +     -none
> +   ]
> +   [
> +     -export |
> +     -internal |
> +     [-function NAME] ... |
> +     [-nosymbol NAME] ...
> +   ]
> +   [-no-doc-sections]
> +   [-export-file FILE] ...
> +   FILE ...
> +
> +Run `kernel-doc -h` for details.

Nit:
$ ./scripts/kernel-doc -h
says:
    Run `kernel-doc -h` for details.

> +
> +=cut
> +
>  # 18/01/2001 - 	Cleanups
>  # 		Functions prototyped as foo(void) same as foo()
>  # 		Stop eval'ing where we don't need to.

-- 
~Randy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ