Re: [PATCH RFC] scripts: add a script to handle Documentation/features
From: Greg Kroah-Hartman
Date: Mon Jun 17 2019 - 14:16:17 EST
On Mon, Jun 17, 2019 at 03:05:07PM -0300, Mauro Carvalho Chehab wrote:
> The Documentation/features contains a set of parseable files.
> It is not worth converting them to ReST format, as they're
> useful the way it is. It is, however, interesting to parse
> them and produce output on different formats:
> 1) Output the contents of a feature in ReST format;
> 2) Output what features a given architecture supports;
> 3) Output a matrix with features x architectures.
> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx>
> As commented at KS mailing list, converting the Documentation/features
> file to ReST may not be the best way to handle it.
> This script allows validating the features files and to generate ReST files
> on three different formats.
> The goal is to support it via a sphinx extension, in order to be able to add
> the features inside the Kernel documentation.
> scripts/get_feat.pl | 470 ++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 470 insertions(+)
> create mode 100755 scripts/get_feat.pl
> diff --git a/scripts/get_feat.pl b/scripts/get_feat.pl
> new file mode 100755
> index 000000000000..c5a267b12f49
> --- /dev/null
> +++ b/scripts/get_feat.pl
> @@ -0,0 +1,470 @@
No SPDX line :(