Commit fc83826b authored by Richard Mansfield's avatar Richard Mansfield

Only push modified .po files for master

parent 09fee16a
......@@ -123,26 +123,29 @@ for branch in ${branches} ; do
bzr add mahara/mahara.pot
bzr commit -m "Update template to ${remotecommit}"
# 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}
else
cd ${BZR}/${exportbranch}
bzr pull
fi
for po in `ls ${BZR}/${exportbranch}/mahara/*.po`; do
pobase=${po##*/}
/usr/bin/perl ${SCRIPTS}/update-po-from-pot.pl $po mahara/mahara.pot mahara/$pobase
done
podiffs=`bzr diff mahara`
if [ ! -z "$podiffs" ] ; then
bzr add mahara
bzr commit -m "Update translations 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}
else
cd ${BZR}/${exportbranch}
bzr pull
fi
for po in `ls ${BZR}/${exportbranch}/mahara/*.po`; do
pobase=${po##*/}
/usr/bin/perl ${SCRIPTS}/update-po-from-pot.pl $po mahara/mahara.pot mahara/$pobase
done
podiffs=`bzr diff mahara`
if [ ! -z "$podiffs" ] ; then
bzr add mahara
bzr commit -m "Update translations to ${remotecommit}"
fi
fi
# Push everything to lp:mahara-lang
......
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