
This normalizes the formatting of files from ci-scripts and config folders in order to allow further hardening of linting. Fixing linting was too big to be made in a single commit as it would involve too many files to review and could merge conflicts with existing changes. Thus doing it in few chunks would makes it possible. Original full change is at https://review.openstack.org/#/c/627545/ and will be the one merging the last. Change-Id: Ifb215c0e2ea0ef7115897721f75ba8489bd59b97
28 lines
600 B
Bash
Executable File
28 lines
600 B
Bash
Executable File
#!/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}
|