mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-22 03:00:29 +08:00
PT-2340 - Support MySQL 8.4
- Changed write-user-docs script, so it creates special documentation pages for symbolic links.
This commit is contained in:
@@ -159,12 +159,29 @@ write_rst() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -h $file ]; then
|
||||||
|
local link="$(readlink $file)"
|
||||||
|
echo "
|
||||||
|
.. program:: ${tool}
|
||||||
|
|
||||||
|
============================
|
||||||
|
:program:\`${tool}\`
|
||||||
|
============================
|
||||||
|
|
||||||
|
NAME
|
||||||
|
====
|
||||||
|
|
||||||
|
:program:\`$(basename $file)\` is a symbolic link to ${link}. Please read documentation for ${link}.
|
||||||
|
|
||||||
|
" > $RST_DIR/$tool.rst
|
||||||
|
else
|
||||||
$BRANCH/util/pod2rst-fixed.packed $file > $RST_DIR/$tool.rst
|
$BRANCH/util/pod2rst-fixed.packed $file > $RST_DIR/$tool.rst
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Wrote $RST_DIR/$tool.rst"
|
echo "Wrote $RST_DIR/$tool.rst"
|
||||||
else
|
else
|
||||||
die "Error writing $RST_DIR/$tool.rst"
|
die "Error writing $RST_DIR/$tool.rst"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parse the head1 sections from percona-toolkit.pod and write them as
|
# Parse the head1 sections from percona-toolkit.pod and write them as
|
||||||
|
|||||||
Reference in New Issue
Block a user