Fix Doc Location for Transifex

During the restructure, the directory structure of the docs
changed, breaking all translation updates for documentation
in the process.

This patch corrects the root path and the directory name of
the high availability guide.

Change-Id: I1073058958803382e19e8f0e6e9e2dc0e2df929b
This commit is contained in:
Tom Fifield 2013-10-11 15:20:11 +11:00
parent 21ae595ceb
commit b4b36404aa
2 changed files with 12 additions and 12 deletions

View File

@ -18,7 +18,7 @@
# and push to Gerrit. # and push to Gerrit.
PROJECT="openstack-manuals" PROJECT="openstack-manuals"
DocFolder="doc/src/docbkx" DocFolder="doc"
COMMIT_MSG="Imported Translations from Transifex" COMMIT_MSG="Imported Translations from Transifex"
@ -54,14 +54,14 @@ fi
for FILE in ${DocFolder}/* for FILE in ${DocFolder}/*
do do
DOCNAME=${FILE#${DocFolder}/} DOCNAME=${FILE#${DocFolder}/}
# openstack-ha needs to create new DocBook files # high-availability-guide needs to create new DocBook files
if [ "$DOCNAME" == "openstack-ha" ] if [ "$DOCNAME" == "high-availability-guide" ]
then then
asciidoc -b docbook -d book -o - ${DocFolder}/openstack-ha/ha-guide.txt \ asciidoc -b docbook -d book -o - ${DocFolder}/high-availability-guide/ha-guide.txt \
| xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - \ | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - \
| xmllint --format - | sed -e 's,<book,<book xml:id="bk-ha-guide",' \ | xmllint --format - | sed -e 's,<book,<book xml:id="bk-ha-guide",' \
| sed -e 's,<info,<?rax pdf.url="../openstack-ha-guide-trunk.pdf"?><info,' \ | sed -e 's,<info,<?rax pdf.url="../high-availability-guide.pdf"?><info,' \
> ${DocFolder}/openstack-ha/bk-ha-guide.xml > ${DocFolder}/high-availability-guide/bk-ha-guide.xml
fi fi
# Update the .pot file # Update the .pot file
./tools/generatepot ${DOCNAME} ./tools/generatepot ${DOCNAME}

View File

@ -16,7 +16,7 @@
# The script is to push the updated PoT to Transifex. # The script is to push the updated PoT to Transifex.
DocFolder="doc/src/docbkx" DocFolder="doc"
if [ ! `echo $ZUUL_REFNAME | grep master` ] if [ ! `echo $ZUUL_REFNAME | grep master` ]
then then
@ -34,14 +34,14 @@ git config user.email "jenkins@openstack.org"
for FILE in ${DocFolder}/* for FILE in ${DocFolder}/*
do do
DOCNAME=${FILE#${DocFolder}/} DOCNAME=${FILE#${DocFolder}/}
# openstack-ha needs to create new DocBook files # high-availability-guide needs to create new DocBook files
if [ "$DOCNAME" == "openstack-ha" ] if [ "$DOCNAME" == "high-availability-guide" ]
then then
asciidoc -b docbook -d book -o - ${DocFolder}/openstack-ha/ha-guide.txt \ asciidoc -b docbook -d book -o - ${DocFolder}/high-availability-guide/ha-guide.txt \
| xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - \ | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - \
| xmllint --format - | sed -e 's,<book,<book xml:id="bk-ha-guide",' \ | xmllint --format - | sed -e 's,<book,<book xml:id="bk-ha-guide",' \
| sed -e 's,<info,<?rax pdf.url="../openstack-ha-guide-trunk.pdf"?><info,' \ | sed -e 's,<info,<?rax pdf.url="../high-availability-guide.pdf"?><info,' \
> ${DocFolder}/openstack-ha/bk-ha-guide.xml > ${DocFolder}/high-availability-guide/bk-ha-guide.xml
fi fi
# Update the .pot file # Update the .pot file
./tools/generatepot ${DOCNAME} ./tools/generatepot ${DOCNAME}