From 5efee26c9711b8467e9aa17c6b366331034bd85e Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 13 Jan 2017 14:02:05 -0500 Subject: Add ReNo support Add ReNo support to manage release notes. http://docs.openstack.org/developer/reno/ Change-Id: Ie5154d909e616e4e7e813052f9c121d6ac5b0875 --- tools/releasenotes_tox.sh | 28 ++++++++++++++++++++++++++++ tools/tox_install.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 tools/releasenotes_tox.sh create mode 100755 tools/tox_install.sh (limited to 'tools') 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 <