mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Call write-user-docs in build-packages.
This commit is contained in:
@@ -286,6 +286,18 @@ update_rel_notes() {
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update_user_docs() {
|
||||||
|
echo -n "Updating user docs: "
|
||||||
|
$BRANCH/util/write-user-docs $BRANCH/bin/* > /tmp/sphinx-build.output 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
warn "Error updating user docs:"
|
||||||
|
cat /tmp/sphinx-build.output >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rm /tmp/sphinx-build.output
|
||||||
|
echo "OK"
|
||||||
|
}
|
||||||
|
|
||||||
prep_release_dir() {
|
prep_release_dir() {
|
||||||
echo -n "Preparing release directory: "
|
echo -n "Preparing release directory: "
|
||||||
cd $BRANCH
|
cd $BRANCH
|
||||||
@@ -423,6 +435,7 @@ if [ $UPDATE -eq 1 ]; then
|
|||||||
update_percona_toolkit_pod
|
update_percona_toolkit_pod
|
||||||
update_changelog
|
update_changelog
|
||||||
update_rel_notes
|
update_rel_notes
|
||||||
|
update_user_docs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now that those ^ items are updated, you need to commit and push one more
|
# Now that those ^ items are updated, you need to commit and push one more
|
||||||
|
@@ -144,7 +144,7 @@ fi
|
|||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
if [ $BUILD -eq 1 ]; then
|
if [ $BUILD -eq 1 ]; then
|
||||||
# -W treats warnings as errors; remove it to ignore warnings if you must.
|
# -W treats warnings as errors; remove it to ignore warnings if you must.
|
||||||
sphinx-build -W -c $CONFIG -b html $RST $HTML
|
sphinx-build -N -W -c $CONFIG -b html $RST $HTML
|
||||||
exit_status=$(( exit_status | $? ))
|
exit_status=$(( exit_status | $? ))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user