Merge "Handle SPECIAL_BOOKs in doc-tools-check-languages"

This commit is contained in:
Jenkins 2015-03-13 07:40:25 +00:00 committed by Gerrit Code Review
commit dbecf8307f
2 changed files with 15 additions and 1 deletions

View File

@ -50,6 +50,11 @@ function test_language {
fi
args+=("--check-build" "-l $language")
for book in ${BOOKS["$language"]}; do
if [ ${SPECIAL_BOOKS[$book]+_} ] ; then
if [ ${SPECIAL_BOOKS[$book]} == "RST" ] ; then
continue
fi
fi
args+=("--only-book $book")
done
@ -75,7 +80,8 @@ function usage {
echo "LANG is a language code like 'fr' or 'ja'."
}
# Declare in case it's not in the file
declare -A SPECIAL_BOOKS
CONF_FILE=$1
shift

View File

@ -18,3 +18,11 @@ POM_FILE=doc/pom.xml
# Location of doc dir
DOC_DIR="doc/"
# Books with special handling
# Values need to match content in project-config/jenkins/scripts/common_translation_update.sh
declare -A SPECIAL_BOOKS
SPECIAL_BOOKS=(
["playground-user-guide"]="RST"
["networking-guide"]="skip"
)