]> git.baikalelectronics.ru Git - kernel.git/commit
sphinx: cheesy script to convert .tmpl files
authorJonathan Corbet <corbet@lwn.net>
Mon, 7 Mar 2016 03:29:31 +0000 (20:29 -0700)
committerJani Nikula <jani.nikula@intel.com>
Mon, 30 May 2016 10:38:53 +0000 (13:38 +0300)
commitf9b5ae220badb1b899c73f7b80d02cb2a9cbc74b
tree256f6bd0d8f5b56ad2fbf87da4625e2a625335e8
parentcfbb7259040d7a25f578ad5a370dfe7d99d01702
sphinx: cheesy script to convert .tmpl files

This script uses pandoc to convert existing DocBook template files to RST
templates.  A couple of sed scripts are need to massage things both before
and after the conversion, but the result is then usable with no hand
editing.

[Jani: Change usage to tmplcvt <in> <out>. Fix escaping for docproc
directives. Add support the new kernel-doc extension.]

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Documentation/sphinx/convert_template.sed [new file with mode: 0644]
Documentation/sphinx/post_convert.sed [new file with mode: 0644]
Documentation/sphinx/tmplcvt [new file with mode: 0755]