Fix publishing location for translations
We want to publish to tarballs.openstack.org/translation-source/PROJECT/VERSION . Correctly construct path for it. Change-Id: I9802f50cae5dd461f76d8ba016a5f404fe74f4f3
This commit is contained in:
parent
548d32bf98
commit
5988eab4ac
@ -15,9 +15,9 @@
|
|||||||
- scp:
|
- scp:
|
||||||
site: 'tarballs.openstack.org'
|
site: 'tarballs.openstack.org'
|
||||||
files:
|
files:
|
||||||
- source: 'pot-files/*.pot'
|
- source: 'translation-source/**/*.pot'
|
||||||
target: 'tarballs/translation-source/{name}/'
|
target: 'tarballs/'
|
||||||
keep-hierarchy: false
|
keep-hierarchy: true
|
||||||
- proposal-slave-cleanup
|
- proposal-slave-cleanup
|
||||||
|
|
||||||
node: 'proposal'
|
node: 'proposal'
|
||||||
|
@ -95,9 +95,11 @@ if [ $(git diff --cached | egrep -v "(POT-Creation-Date|^[\+\-]#|^\+{3}|^\-{3})"
|
|||||||
# The Zanata client works out what to send based on the zanata.xml file.
|
# The Zanata client works out what to send based on the zanata.xml file.
|
||||||
# Do not copy translations from other files for this change.
|
# Do not copy translations from other files for this change.
|
||||||
zanata-cli -B -e push --copy-trans False
|
zanata-cli -B -e push --copy-trans False
|
||||||
# Copy all *.pot files to pot-files directory
|
# Copy all *.pot files to translation-source directory
|
||||||
mkdir -p .pot-files/$ZANATA_VERSION/
|
TARGET_PATH=.translation-source/$PROJECT/$ZANATA_VERSION/
|
||||||
|
mkdir -p $TARGET_PATH
|
||||||
# Exclude . directories
|
# Exclude . directories
|
||||||
find . -path "./.*" -prune -o -name "*.pot" -exec cp -v {} .pot-files \;
|
find . -path "./.*" -prune -o -name "*.pot" \
|
||||||
mv .pot-files pot-files
|
-exec cp -v {} $TARGET_PATH \;
|
||||||
|
mv .translation-source translation-source
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user