Handle SPECIAL_BOOKs in doc-tools-check-languages

For now ignore RST books.

Change-Id: I5bf582ebc3bd4333e7bf6982d1c91da6eef8cf57
This commit is contained in:
Andreas Jaeger 2015-03-10 20:15:42 +01:00
parent 781b6e2ed4
commit 30452280a2
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"
)