mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
![Jani Nikula](/assets/img/avatar_default.png)
Add "struct" in the label of the reference. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
23 lines
565 B
Sed
23 lines
565 B
Sed
#
|
|
# Unescape.
|
|
#
|
|
s/$bq/`/g
|
|
s/$lt/</g
|
|
s/$gt/>/g
|
|
#
|
|
# pandoc thinks that both "_" needs to be escaped. Remove the extra
|
|
# backslashes.
|
|
#
|
|
s/\\_/_/g
|
|
#
|
|
# Unwrap docproc directives.
|
|
#
|
|
s/^``DOCPROC: !E\(.*\)``$/.. kernel-doc:: \1\n :export:/
|
|
s/^``DOCPROC: !I\(.*\)``$/.. kernel-doc:: \1\n :internal:/
|
|
s/^``DOCPROC: !F\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :functions: \2/
|
|
s/^``DOCPROC: !P\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :doc: \2/
|
|
s/^``DOCPROC: \(!.*\)``$/.. WARNING: DOCPROC directive not supported: \1/
|
|
#
|
|
# Trim trailing whitespace.
|
|
#
|
|
s/[[:space:]]*$//
|