https://github.com/torvalds/linux
Raw File
Tip revision: 9395452b4aab7bc2475ef8935b4a4fb99d778d70 authored by Linus Torvalds on 12 September 2016, 03:02:25 UTC
Linux 4.8-rc6
Tip revision: 9395452
post_convert.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:]]*$//
back to top