From 03059bb5c03846b8d758dc5393729cb57d4e4281 Mon Sep 17 00:00:00 2001 From: "Ian Y. Choi" Date: Sat, 9 Jun 2018 01:06:28 +0900 Subject: [PATCH] [generatepot] Removes unnecessary -b option To generate pot files using Sphinx, just using "-b gettext" is sufficient and there is no need to additionally specify such as "-b html" or "-b gettext". Change-Id: Ibbe420b104a592db39f7f34f496210fcd678eae1 --- tools/buildlang.sh | 4 ++-- tools/generatepot-training.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/buildlang.sh b/tools/buildlang.sh index f954e02c..5bd930f9 100755 --- a/tools/buildlang.sh +++ b/tools/buildlang.sh @@ -30,10 +30,10 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID" # upstream-training contains the HTML and slides contents # build upstream-training slides -sphinx-build -j $NUMBER_OF_CORES -b slides -b gettext ${DIRECTORY}/source/slides \ +sphinx-build -j $NUMBER_OF_CORES -b gettext ${DIRECTORY}/source/slides \ ${DIRECTORY}/source/locale/ # build upstream landing page index.html -sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source/website \ +sphinx-build -j $NUMBER_OF_CORES -b gettext ${DIRECTORY}/source/website \ ${DIRECTORY}/source/locale/ # check all language translation resouce diff --git a/tools/generatepot-training.sh b/tools/generatepot-training.sh index 8970d2ce..2a9c858f 100755 --- a/tools/generatepot-training.sh +++ b/tools/generatepot-training.sh @@ -30,10 +30,10 @@ rm -f ${DIRECTORY}/source/locale/$DOCNAME.pot # upstream-training contains the HTML and slides contents # build upstream-training slides -sphinx-build -j $NUMBER_OF_CORES -b slides -b gettext ${DIRECTORY}/source/slides \ +sphinx-build -j $NUMBER_OF_CORES -b gettext ${DIRECTORY}/source/slides \ ${DIRECTORY}/source/locale/ # build upstream landing page index.html -sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source/website \ +sphinx-build -j $NUMBER_OF_CORES -b gettext ${DIRECTORY}/source/website \ ${DIRECTORY}/source/locale/ # Take care of deleting all temporary files so that