From 84eaa62fee934bfba54ebc6d619548941b3eacc2 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 8 Oct 2015 07:14:44 +0200 Subject: [PATCH] Fix generatepot-rst for api-quick-start The guide has no common directory, therefore we have no common translation. Handle this in our script. Change-Id: If140cd8ebe893eedebd2a5f883210309380220e7 Depends-On: Id34b92430ef4da804335714710547ada02c23cef --- tools/generatepot-rst.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/generatepot-rst.sh b/tools/generatepot-rst.sh index 9c112ad3af..1504ca0448 100755 --- a/tools/generatepot-rst.sh +++ b/tools/generatepot-rst.sh @@ -93,8 +93,8 @@ EOF rm -f ${TOPDIR}common-rst/source/locale/dummy.po else # common-rst is translated as part of openstack-manuals, do not - # include the file in the combined tree. - rm ${DIRECTORY}/source/locale/common.pot + # include the file in the combined tree if it exists. + rm -f ${DIRECTORY}/source/locale/common.pot fi # Take care of deleting all temporary files so that