#!/bin/bash## Convert a template file into something like RST## fix <function># feed to pandoc# fix \_# title line?#in=$1rst=$2tmp=$rst.tmp
cp$in$tmp
sed--in-place-fconvert_template.sed$tmp
pandoc-s-S-fdocbook-trst-o$rst$tmp
sed--in-place-fpost_convert.sed$rst
rm$tmp