Merge "Fix checkbuild index"

This commit is contained in:
Jenkins 2015-05-16 20:32:00 +00:00 committed by Gerrit Code Review
commit 7b266a3e7e

View File

@ -50,9 +50,18 @@ done
# Build the www pages so that openstack-doc-test creates a link to
# www/www-index.html.
python tools/www-generator.py --source-directory www/ --output-directory publish-docs/
rsync -a www/static/ publish-docs/
if [ "$PUBLISH" = "build" ] ; then
python tools/www-generator.py --source-directory www/ \
--output-directory publish-docs/www/
rsync -a www/static/ publish-docs/www/
# publish-docs/www-index.html is the trigger for openstack-doc-test
# to include the file.
mv publish-docs/www/www-index.html publish-docs/www-index.html
fi
if [ "$PUBLISH" = "publish" ] ; then
python tools/www-generator.py --source-directory www/ \
--output-directory publish-docs
rsync -a www/static/ publish-docs/
# Don't publish this file
rm publish-docs/www-index.html
fi