diff --git a/locale/updatetrans.sh b/locale/updatetrans.sh index abc1e0e6e4..c7c026e568 100755 --- a/locale/updatetrans.sh +++ b/locale/updatetrans.sh @@ -17,11 +17,11 @@ for file in `find -name 'BOINC-Manager.po'` ; do timestampPO=`date -r ${projdir}/${locale}/BOINC-Manager.po` timestampMO=`date -r ${projdir}/${locale}/BOINC-Manager.mo` - if [ "${timestampPO}" -ne "${timestampMO}" ]; then + if [ "${timestampPO}" != "${timestampMO}" ]; then # Remove old MO from previous compilation # - rm ${projdir}/BOINC-Manager.mo + rm ${projdir}/BOINC-Manager.mo > /dev/null 2> /dev/null # Use wget to cause the Pottle system to compile the PO file into an MO file. # @@ -29,10 +29,10 @@ for file in `find -name 'BOINC-Manager.po'` ; do # # Example: http://boinc.berkeley.edu/translate/ar/boinctrunk/BOINC-Manager.mo # - wget http://boinc.berkeley.edu/translate/${locale}/${projname}/BOINC-Manager.mo + wget http://boinc.berkeley.edu/translate/${locale}/${projname}/BOINC-Manager.mo > /dev/null 2> /dev/null # Add any new MO files to SVN - svn add ${projdir}/${locale}/BOINC-Manager.mo + svn add ${projdir}/${locale}/BOINC-Manager.mo > /dev/null 2> /dev/null # Touch each file to adjust timestamps touch ${projdir}/${locale}/BOINC-Manager.po @@ -42,6 +42,10 @@ for file in `find -name 'BOINC-Manager.po'` ; do done +# Remove old MO from previous compilation +# +rm ${projdir}/BOINC-Manager.mo > /dev/null 2> /dev/null + # Commit any changes to SVN svn commit -m 'Update Translations'