Call write-user-docs in build-packages.

This commit is contained in:
Daniel Nichter
2011-08-04 12:37:12 -06:00
parent 5f85bd22ce
commit 8037e79e71
2 changed files with 14 additions and 1 deletions

View File

@@ -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

View File

@@ -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