]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - Documentation/sphinx/tmplcvt
Merge back ACPICA material for v4.13.
[mirror_ubuntu-artful-kernel.git] / Documentation / sphinx / tmplcvt
CommitLineData
89a66d76
JC
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#
686b0d9b
MCC
10set -eu
11
12if [ "$#" != "2" ]; then
13 echo "$0 <docbook file> <rst file>"
14 exit
15fi
16
17DIR=$(dirname $0)
89a66d76
JC
18
19in=$1
20rst=$2
21tmp=$rst.tmp
22
23cp $in $tmp
686b0d9b 24sed --in-place -f $DIR/convert_template.sed $tmp
89a66d76 25pandoc -s -S -f docbook -t rst -o $rst $tmp
686b0d9b 26sed --in-place -f $DIR/post_convert.sed $rst
89a66d76 27rm $tmp
686b0d9b 28echo "book writen to $rst"