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: Id34b92430ef4da804335714710547ada02c23cef
This commit is contained in:
Andreas Jaeger 2015-10-08 06:57:00 +02:00
parent ef39aa4e56
commit 88adb2488a
1 changed files with 4 additions and 2 deletions

View File

@ -93,8 +93,10 @@ 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.
if [ -f ${DIRECTORY}/source/locale/common.pot ] ; then
rm ${DIRECTORY}/source/locale/common.pot
fi
fi
# Take care of deleting all temporary files so that