projects
/
releases.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GNU Linux-libre 4.9.330-gnu1
[releases.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