repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git]
/
Documentation
/
sphinx
/
tmplcvt
blob
909a73065e0a5b9c0b4d680b94d2e738698f606c
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