mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 18:48:01 +07:00
20 lines
301 B
Plaintext
20 lines
301 B
Plaintext
|
#!/bin/bash
|
||
|
#
|
||
|
# Convert a template file into something like RST
|
||
|
#
|
||
|
# fix <function>
|
||
|
# feed to pandoc
|
||
|
# fix \_
|
||
|
# title line?
|
||
|
#
|
||
|
|
||
|
in=$1
|
||
|
rst=$2
|
||
|
tmp=$rst.tmp
|
||
|
|
||
|
cp $in $tmp
|
||
|
sed --in-place -f convert_template.sed $tmp
|
||
|
pandoc -s -S -f docbook -t rst -o $rst $tmp
|
||
|
sed --in-place -f post_convert.sed $rst
|
||
|
rm $tmp
|