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:
Andreas Jaeger 2016-11-18 18:14:46 +01:00
parent 387e8288c7
commit 4d7d799cc3
1 changed files with 17 additions and 14 deletions

View File

@ -121,6 +121,8 @@ function build_rst {
for tag in $INSTALL_TAGS; do
if [[ "$tag" == "debconf" ]]; then
# Not all branches have this directory
if [[ -d ${DOC_DIR}${book}-${tag}/source ]] ; then
# Build the guide with debconf
# To use debian only contents, use "debian" tag.
BUILD_DIR="${DOC_DIR}${book}-${tag}/build-${tag}/html"
@ -135,6 +137,7 @@ function build_rst {
rsync -a ${DOC_DIR}${book}-${tag}/build-${tag}/html/ \
${PUBLISH_DIR}
echo $MARKER_TEXT > ${PUBLISH_DIR}/.root-marker
fi
else
##
# Because Sphinx uses the first heading as title regardless of