mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-22 03:00:29 +08:00
Fix pod2rst output.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user