Fix Install Guide builds
Fix building of Debian RST Install Guide, it has a different index file that needs to be renamed. Cleanup after builds and remove temporary produced files and changes to checked-in po and pot files. Update RELEASE_NOTES, include entry for another change. Change-Id: I1de8a70d7d4b483e023411b8949f77b093b72b11
This commit is contained in:
parent
dba8e4ac01
commit
bd539fc715
|
@ -1,6 +1,12 @@
|
|||
Release notes
|
||||
=============
|
||||
|
||||
0.30.1
|
||||
------
|
||||
|
||||
* ``openstack-auto-commands``: Fix option parsing (bug#1488505)
|
||||
* ``doc-tools-check-languages``: Fix RST Debian Install Guide.
|
||||
|
||||
0.30.0
|
||||
------
|
||||
|
||||
|
|
|
@ -110,6 +110,12 @@ function build_rst {
|
|||
rsync -a ${DOC_DIR}${book}/build-${tag}/html/ \
|
||||
publish-docs/${language}/${book}-${tag}
|
||||
done
|
||||
# Debian Install Guide uses index-debian, we need to rename the file
|
||||
INSTALL_DEBIAN="publish-docs/${language}/install-guide-debian/"
|
||||
if [ -f ${INSTALL_DEBIAN}/index-debian.html ] ; then
|
||||
mv ${INSTALL_DEBIAN}/index-debian.html \
|
||||
${INSTALL_DEBIAN}/index.html
|
||||
fi
|
||||
else
|
||||
tox -evenv "sphinx-build -q -E -D language=${language} \
|
||||
${DOC_DIR}${book}/source/ \
|
||||
|
@ -117,6 +123,13 @@ function build_rst {
|
|||
mkdir -p publish-docs/${language}/${book}/
|
||||
rsync -a ${DOC_DIR}${book}/build/html/ publish-docs/${language}/${book}/
|
||||
fi
|
||||
# Remove newly created files
|
||||
git clean -f -q ${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/*.po
|
||||
git clean -f -x -q ${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/*.mo
|
||||
git clean -f -q ${DOC_DIR}${book}/source/locale/*.pot
|
||||
# Revert changes to po file
|
||||
git reset -q ${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/${book}.po
|
||||
git checkout -- ${DOC_DIR}${book}/source/locale/${language}/LC_MESSAGES/${book}.po
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue