From 14f0a231df9f1585f2e70786db40ca3ad4020e39 Mon Sep 17 00:00:00 2001
From: KATO Tomoyuki <kato.tomoyuki@jp.fujitsu.com>
Date: Fri, 14 Oct 2016 14:51:54 +0900
Subject: [PATCH] Fix generate pot script

Change-Id: I95ab5c775ce09238d0f3585672d01a95ea8a897a
---
 tools/generatepot-training.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/generatepot-training.sh b/tools/generatepot-training.sh
index 9c2789ce..8970d2ce 100755
--- a/tools/generatepot-training.sh
+++ b/tools/generatepot-training.sh
@@ -29,9 +29,11 @@ rm -f ${DIRECTORY}/source/locale/$DOCNAME.pot
 
 # upstream-training contains the HTML and slides contents
 
-sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/ \
+# build upstream-training slides
+sphinx-build -j $NUMBER_OF_CORES -b slides -b gettext ${DIRECTORY}/source/slides \
     ${DIRECTORY}/source/locale/
-sphinx-build -j $NUMBER_OF_CORES -b slides -b gettext ${DIRECTORY}/source/ \
+# build upstream landing page index.html
+sphinx-build -j $NUMBER_OF_CORES -b html -b gettext ${DIRECTORY}/source/website \
     ${DIRECTORY}/source/locale/
 
 # Take care of deleting all temporary files so that