projects
/
platform
/
kernel
/
linux-rpi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[platform/kernel/linux-rpi.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