diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-14 06:47:27 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-14 06:47:27 +0000 |
commit | be3b4249737af55ba65013172c5b90eaf9ab6107 (patch) | |
tree | a574a5efefd7310eda69a92858fa53b0f63bbd69 /tools/releasenotes_tox.sh | |
parent | 3878392855b75b8040f7051a4258e2f0dc534a28 (diff) | |
parent | 5efee26c9711b8467e9aa17c6b366331034bd85e (diff) |
Merge "Add ReNo support"
Diffstat (limited to 'tools/releasenotes_tox.sh')
-rwxr-xr-x | tools/releasenotes_tox.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/releasenotes_tox.sh b/tools/releasenotes_tox.sh new file mode 100755 index 00000000..4fecfd92 --- /dev/null +++ b/tools/releasenotes_tox.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +rm -rf releasenotes/build + +sphinx-build -a -E -W \ + -d releasenotes/build/doctrees \ + -b html \ + releasenotes/source releasenotes/build/html +BUILD_RESULT=$? + +UNCOMMITTED_NOTES=$(git status --porcelain | \ + awk '$1 == "M" && $2 ~ /releasenotes\/notes/ {print $2}') + +if [ "${UNCOMMITTED_NOTES}" ] +then + cat <<EOF + +REMINDER: The following changes to release notes have not been committed: + +${UNCOMMITTED_NOTES} + +While that may be intentional, keep in mind that release notes are built from +committed changes, not the working directory. + +EOF +fi + +exit ${BUILD_RESULT} |