Only build debconf if it exists
Not all branches have a debconf directory, so only build the guide if the directory exists. Change-Id: I3dda9da6f78b54a7f821562a04c1ba2d20823312
This commit is contained in:
parent
387e8288c7
commit
4d7d799cc3
|
@ -121,20 +121,23 @@ function build_rst {
|
||||||
|
|
||||||
for tag in $INSTALL_TAGS; do
|
for tag in $INSTALL_TAGS; do
|
||||||
if [[ "$tag" == "debconf" ]]; then
|
if [[ "$tag" == "debconf" ]]; then
|
||||||
# Build the guide with debconf
|
# Not all branches have this directory
|
||||||
# To use debian only contents, use "debian" tag.
|
if [[ -d ${DOC_DIR}${book}-${tag}/source ]] ; then
|
||||||
BUILD_DIR="${DOC_DIR}${book}-${tag}/build-${tag}/html"
|
# Build the guide with debconf
|
||||||
DOCTREES="${BUILD_DIR}.doctrees"
|
# To use debian only contents, use "debian" tag.
|
||||||
tox -evenv -- sphinx-build -q -E -t debian \
|
BUILD_DIR="${DOC_DIR}${book}-${tag}/build-${tag}/html"
|
||||||
-D language=${language} \
|
DOCTREES="${BUILD_DIR}.doctrees"
|
||||||
-d ${DOCTREES} \
|
tox -evenv -- sphinx-build -q -E -t debian \
|
||||||
${DOC_DIR}${book}-${tag}/source/ \
|
-D language=${language} \
|
||||||
${BUILD_DIR}
|
-d ${DOCTREES} \
|
||||||
PUBLISH_DIR=publish-docs/${language}/${book}-${tag}
|
${DOC_DIR}${book}-${tag}/source/ \
|
||||||
mkdir -p ${PUBLISH_DIR}
|
${BUILD_DIR}
|
||||||
rsync -a ${DOC_DIR}${book}-${tag}/build-${tag}/html/ \
|
PUBLISH_DIR=publish-docs/${language}/${book}-${tag}
|
||||||
${PUBLISH_DIR}
|
mkdir -p ${PUBLISH_DIR}
|
||||||
echo $MARKER_TEXT > ${PUBLISH_DIR}/.root-marker
|
rsync -a ${DOC_DIR}${book}-${tag}/build-${tag}/html/ \
|
||||||
|
${PUBLISH_DIR}
|
||||||
|
echo $MARKER_TEXT > ${PUBLISH_DIR}/.root-marker
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
##
|
##
|
||||||
# Because Sphinx uses the first heading as title regardless of
|
# Because Sphinx uses the first heading as title regardless of
|
||||||
|
|
Loading…
Reference in New Issue