From 16f5f3731780bdbd10748cbb386d7c8699ff57c8 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 24 Mar 2015 15:25:10 -0400 Subject: [PATCH] LOCALE: Make 'git add' happy using relative paths instead of absolute paths --- locale/updatetrans.sh | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/locale/updatetrans.sh b/locale/updatetrans.sh index e201ab8dc3..4e387fccd4 100755 --- a/locale/updatetrans.sh +++ b/locale/updatetrans.sh @@ -3,19 +3,17 @@ # Look for .po files modified later than .mo, and regenerate .mo file # Then commit and push changes. -# This is run in the Pootle copy of the source tree (~/pootle/repos/boinctrunk) -# It's run from pootle/update.sh, which is run from cron every 12 hours. -# projname=boinc projdir=/home/boincadm/rwalton/$projname/locale cd $projdir - for file in `find -name 'BOINC-Manager.po'` ; do dir=`dirname $file` locale=`basename $dir` - template_name=${projdir}/${locale}/BOINC-Manager + template_name=BOINC-Manager + + cd $projdir/${locale} if test ${template_name}.po -nt ${template_name}.mo then @@ -34,10 +32,14 @@ for file in `find -name 'BOINC-Manager.po'` ; do done +cd $projdir + for file in `find -name 'BOINC-Client.po'` ; do dir=`dirname $file` locale=`basename $dir` - template_name=${projdir}/${locale}/BOINC-Client + template_name=BOINC-Client + + cd $projdir/${locale} if test ${template_name}.po -nt ${template_name}.mo then @@ -56,10 +58,14 @@ for file in `find -name 'BOINC-Client.po'` ; do done +cd $projdir + for file in `find -name 'BOINC-Web.po'` ; do dir=`dirname $file` locale=`basename $dir` - template_name=${projdir}/${locale}/BOINC-Web + template_name=BOINC-Web + + cd $projdir/${locale} if test ${template_name}.po -nt ${template_name}.mo then @@ -78,10 +84,14 @@ for file in `find -name 'BOINC-Web.po'` ; do done +cd $projdir + for file in `find -name 'BOINC-Setup.po'` ; do dir=`dirname $file` locale=`basename $dir` - template_name=${projdir}/${locale}/BOINC-Setup + template_name=BOINC-Setup + + cd $projdir/${locale} if test ${template_name}.po -nt ${template_name}.mo then