]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/sphinx/tmplcvt
Merge branch 'for-4.8/core' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / Documentation / sphinx / tmplcvt
1 #!/bin/bash
2 #
3 # Convert a template file into something like RST
4 #
5 # fix <function>
6 # feed to pandoc
7 # fix \_
8 # title line?
9 #
10
11 in=$1
12 rst=$2
13 tmp=$rst.tmp
14
15 cp $in $tmp
16 sed --in-place -f convert_template.sed $tmp
17 pandoc -s -S -f docbook -t rst -o $rst $tmp
18 sed --in-place -f post_convert.sed $rst
19 rm $tmp