Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.8 23 lines 565 B view raw
1# 2# Unescape. 3# 4s/$bq/`/g 5s/$lt/</g 6s/$gt/>/g 7# 8# pandoc thinks that both "_" needs to be escaped. Remove the extra 9# backslashes. 10# 11s/\\_/_/g 12# 13# Unwrap docproc directives. 14# 15s/^``DOCPROC: !E\(.*\)``$/.. kernel-doc:: \1\n :export:/ 16s/^``DOCPROC: !I\(.*\)``$/.. kernel-doc:: \1\n :internal:/ 17s/^``DOCPROC: !F\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :functions: \2/ 18s/^``DOCPROC: !P\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :doc: \2/ 19s/^``DOCPROC: \(!.*\)``$/.. WARNING: DOCPROC directive not supported: \1/ 20# 21# Trim trailing whitespace. 22# 23s/[[:space:]]*$//