scripts: get_feat.pl: use its implementation for list-arch.sh
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 30 Nov 2020 15:36:32 +0000 (16:36 +0100)
committerJonathan Corbet <corbet@lwn.net>
Thu, 3 Dec 2020 22:10:14 +0000 (15:10 -0700)
commitca908577790fd0dc3070813b752d7eb7f74e609f
tree60e114957e75d030fc749a07561a5b27047932df
parentba813f7c2dc894eebcb3f8a66c0e9e26e53a4923
scripts: get_feat.pl: use its implementation for list-arch.sh

Add support for the same output format as the bash script,
and use its implementation instead of the previous one.

I opted to do such patch in order to have a single script
responsible for parsing Documentation/features and
produce different outputs.

As someone may rely on the past format, which is easy
to parse it, get_feat.pl now gains a new command with
the same output format as the previous script.

As a side effect, the perl script is a lot faster, as it reads
each file only once, instead of parsing files several times
via a for command and grep commands inside it.

This patch also changes the features list order to be
case-insensitive, in order to better match the output of
the existing script.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/a97f49677805ad4e6b982d02c0db8c9dfbbd20a6.1606748711.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/features/list-arch.sh
scripts/get_feat.pl