Commit fc83826b authored by Richard Mansfield's avatar Richard Mansfield

Only push modified .po files for master

parent 09fee16a
......@@ -123,8 +123,10 @@ for branch in ${branches} ; do
bzr add mahara/mahara.pot
bzr commit -m "Update template to ${remotecommit}"
if [ $branch = 'master' ] ; then
# Update all the .po files from the export repo to avoid unnecessary invalidation
# of existing translations
exportbranch=${branch}-export
if [ ! -d ${BZR}/${exportbranch} ]; then
bzr branch lp:~mahara-lang/mahara-lang/${exportbranch} ${BZR}/${exportbranch}
......@@ -144,6 +146,7 @@ for branch in ${branches} ; do
bzr add mahara
bzr commit -m "Update translations to ${remotecommit}"
fi
fi
# Push everything to lp:mahara-lang
bzr push lp:~mahara-lang/mahara-lang/${branch}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment