From 75373fb659d2d50fedc84e03edce1a8d733c60b7 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 24 Mar 2015 15:33:54 -0400 Subject: [PATCH] LOCALE: Use a separate flag file. If you clone a new repo, both the po and mo files will have the same date/time stamp. --- locale/updatetrans.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/locale/updatetrans.sh b/locale/updatetrans.sh index 4e387fccd4..0349aa3fe6 100755 --- a/locale/updatetrans.sh +++ b/locale/updatetrans.sh @@ -15,7 +15,7 @@ for file in `find -name 'BOINC-Manager.po'` ; do cd $projdir/${locale} - if test ${template_name}.po -nt ${template_name}.mo + if test ${template_name}.po -nt ${template_name}.mo.flag then # Compile the PO file into an MO file. @@ -26,7 +26,7 @@ for file in `find -name 'BOINC-Manager.po'` ; do # Touch each file to adjust timestamps touch ${template_name}.po - touch ${template_name}.mo + touch ${template_name}.mo.flag fi done @@ -41,7 +41,7 @@ for file in `find -name 'BOINC-Client.po'` ; do cd $projdir/${locale} - if test ${template_name}.po -nt ${template_name}.mo + if test ${template_name}.po -nt ${template_name}.mo.flag then # Compile the PO file into an MO file. @@ -52,7 +52,7 @@ for file in `find -name 'BOINC-Client.po'` ; do # Touch each file to adjust timestamps touch ${template_name}.po - touch ${template_name}.mo + touch ${template_name}.mo.flag fi done @@ -67,7 +67,7 @@ for file in `find -name 'BOINC-Web.po'` ; do cd $projdir/${locale} - if test ${template_name}.po -nt ${template_name}.mo + if test ${template_name}.po -nt ${template_name}.mo.flag then # Compile the PO file into an MO file. @@ -78,7 +78,7 @@ for file in `find -name 'BOINC-Web.po'` ; do # Touch each file to adjust timestamps touch ${template_name}.po - touch ${template_name}.mo + touch ${template_name}.mo.flag fi done @@ -93,7 +93,7 @@ for file in `find -name 'BOINC-Setup.po'` ; do cd $projdir/${locale} - if test ${template_name}.po -nt ${template_name}.mo + if test ${template_name}.po -nt ${template_name}.mo.flag then # Compile the PO file into an MO file. @@ -104,7 +104,7 @@ for file in `find -name 'BOINC-Setup.po'` ; do # Touch each file to adjust timestamps touch ${template_name}.po - touch ${template_name}.mo + touch ${template_name}.mo.flag fi done