]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: parse-headers.py: convert parse-headers.pl
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 22 Aug 2025 14:19:14 +0000 (16:19 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 29 Aug 2025 21:54:42 +0000 (15:54 -0600)
commit8a5a85be4df1ab0642d4a3610691dbaed443d4d0
tree591107e5835103ecb20c0fa166a8421da6c61eb8
parentb5698da669401ed3f51add92f80457703f0937e3
docs: parse-headers.py: convert parse-headers.pl

When the Kernel started to use Sphinx, we had to come up with
a solution to parse media headers. On that time, we didn't have
much experience with Sphinx extensions. So, we came up with our
own script-based solution that were basically implementing a
set of rules we used to have at the Makefile.

Convert it to Python, keeping it bug-compatible with the
original script.

While here, try to better document it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/ae5cfa8dff37e280cc9493fc95a51cd0cc0ba127.1755872208.git.mchehab+huawei@kernel.org
Documentation/sphinx/parse-headers.py [new file with mode: 0755]