From b4b36404aa7326c4e383e8a45eff4ba68f66c86a Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Fri, 11 Oct 2013 15:20:11 +1100 Subject: [PATCH] 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 --- .../propose_translation_update_manuals.sh | 12 ++++++------ .../upstream_translation_update_manuals.sh | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/propose_translation_update_manuals.sh b/modules/jenkins/files/slave_scripts/propose_translation_update_manuals.sh index c098fc3f79..4978606f6f 100755 --- a/modules/jenkins/files/slave_scripts/propose_translation_update_manuals.sh +++ b/modules/jenkins/files/slave_scripts/propose_translation_update_manuals.sh @@ -18,7 +18,7 @@ # and push to Gerrit. PROJECT="openstack-manuals" -DocFolder="doc/src/docbkx" +DocFolder="doc" COMMIT_MSG="Imported Translations from Transifex" @@ -54,14 +54,14 @@ fi for FILE in ${DocFolder}/* do DOCNAME=${FILE#${DocFolder}/} - # openstack-ha needs to create new DocBook files - if [ "$DOCNAME" == "openstack-ha" ] + # high-availability-guide needs to create new DocBook files + if [ "$DOCNAME" == "high-availability-guide" ] 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 - \ | xmllint --format - | sed -e 's, ${DocFolder}/openstack-ha/bk-ha-guide.xml +| sed -e 's, ${DocFolder}/high-availability-guide/bk-ha-guide.xml fi # Update the .pot file ./tools/generatepot ${DOCNAME} diff --git a/modules/jenkins/files/slave_scripts/upstream_translation_update_manuals.sh b/modules/jenkins/files/slave_scripts/upstream_translation_update_manuals.sh index 16119efe1b..24c076877a 100755 --- a/modules/jenkins/files/slave_scripts/upstream_translation_update_manuals.sh +++ b/modules/jenkins/files/slave_scripts/upstream_translation_update_manuals.sh @@ -16,7 +16,7 @@ # The script is to push the updated PoT to Transifex. -DocFolder="doc/src/docbkx" +DocFolder="doc" if [ ! `echo $ZUUL_REFNAME | grep master` ] then @@ -34,14 +34,14 @@ git config user.email "jenkins@openstack.org" for FILE in ${DocFolder}/* do DOCNAME=${FILE#${DocFolder}/} - # openstack-ha needs to create new DocBook files - if [ "$DOCNAME" == "openstack-ha" ] + # high-availability-guide needs to create new DocBook files + if [ "$DOCNAME" == "high-availability-guide" ] 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 - \ | xmllint --format - | sed -e 's, ${DocFolder}/openstack-ha/bk-ha-guide.xml +| sed -e 's, ${DocFolder}/high-availability-guide/bk-ha-guide.xml fi # Update the .pot file ./tools/generatepot ${DOCNAME}