Fix pod2rst output.

This commit is contained in:
Daniel Nichter
2011-12-30 11:42:05 -07:00
parent d1bd7a9f3b
commit 2221b13cd3
3 changed files with 78 additions and 6 deletions

View File

@@ -72,12 +72,16 @@ write_rst() {
fi
local tool=$(basename $file)
cat $file | pod2rst --title=$tool > $RST_DIR/$tool.rst
cat $file | pod2rst > $RST_DIR/$tool.orig.rst
if [ $? -eq 0 ]; then
$BRANCH/util/fix-pod2rst-output $RST_DIR/$tool.orig.rst $tool \
> $RST_DIR/$tool.rst
echo "Wrote $RST_DIR/$tool.rst"
else
warn "Error writing $RST_DIR/tool.rst"
fi
rm $RST_DIR/$tool.orig.rst
}
# Parse the head1 sections from percona-toolkit.pod and write them as