Quick Updates

svn path=/trunk/boinc/; revision=21906
This commit is contained in:
Rom Walton 2010-07-13 20:02:33 +00:00
parent 3e22fa63f9
commit 9d12f95fb4
1 changed files with 33 additions and 0 deletions

View File

@ -46,6 +46,39 @@ for file in `find -name 'BOINC-Manager.po'` ; do
done
# Iterrate through the various PO files looking for those that need to be compiled.
#
for file in `find -name 'BOINC-Client.po'` ; do
dir=`dirname $file`
locale=`basename $dir`
template_name=${projdir}/${locale}/BOINC-Client
# Remove old MO from previous compilation
#
rm ${projdir}/BOINC-Client.mo > /dev/null 2> /dev/null
if test ${template_name}.po -nt ${template_name}.mo
then
# Use wget to cause the Pottle system to compile the PO file into an MO file.
#
# poEdit has a hard time with the Pootle markup in the PO files.
#
# Example: http://boinc.berkeley.edu/translate/ar/boinctrunk/BOINC-Client.mo
#
wget "http://boinc.berkeley.edu/translate/${locale}/${projname}/BOINC-Client.mo" > /dev/null 2> /dev/null
# Add any new MO files to SVN
svn add ${template_name}.mo > /dev/null 2> /dev/null
# Touch each file to adjust timestamps
touch ${template_name}.po
touch ${template_name}.mo
fi
done
# Determine if we need to update the various languages using the templates.
# This will be done by the use of a tag file which should have a matching
# timestamp as the template files. If the timestamps do not match update all