f8884d1943
Without cleanup, individual pot files in the temporary build directory were being picked up by Zanata as separate documents. Change-Id: I434e2f0dae9a82592232b5aa363cfddca4017055 Signed-off-by: Dmitriy Chubinidze <dcu995@gmail.com>
18 lines
506 B
Bash
Executable File
18 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Extract messages from the deploy-guide
|
|
sphinx-build -b gettext \
|
|
doc/source/deploy-guide/source \
|
|
doc/build/gettext-deploy-guide/
|
|
|
|
# Concatenate all deploy-guide pot files into a single one
|
|
# and store in doc/source/locale/
|
|
msgcat --use-first --sort-by-file doc/build/gettext-deploy-guide/*.pot \
|
|
> doc/build/gettext/deploy-guide.pot
|
|
|
|
# Remove the temp directory so its individual pot files
|
|
# are not picked up and pushed to Zanata
|
|
rm -rf doc/build/gettext-deploy-guide/
|