From 238b8849d262d3def524e0ebe1356acff1e26c8f Mon Sep 17 00:00:00 2001 From: filip Date: Sun, 25 Jan 2015 00:18:44 +0100 Subject: mga3 removed from database due to EOL, added mga4 + small fix --- check_for_translation_work.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'check_for_translation_work.sh') diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh index 13c1e8bb..3121919d 100755 --- a/check_for_translation_work.sh +++ b/check_for_translation_work.sh @@ -7,7 +7,7 @@ # # Filip Komar, 2012, 2013, 2014 # Remco Rijnders, 2012 -# $Id: check_for_translation_work.sh 2014-02-03 16:58:00 UTC filip $ +# $Id: check_for_translation_work.sh 2015-01-24 20:23:00 UTC filip $ # # Please see git for a list of changes to this script. # @@ -68,8 +68,8 @@ copying_po=1 # set copying of web page files with 1 copying_wp=1 -# uncomment next line to exclude work on software resources for mageia 3 -#work_on_mga3=no +# uncomment next line to exclude work on software resources for mageia 4 +#work_on_mga4=no # ADVANCED SETTINGS # set checking syntax of pot files with 1 @@ -291,7 +291,7 @@ do fi # checking for fuzzy and untranslated strings in git $language_code.po - if [ -f $language_code.po ]; then + if [ -f "$language_code.po" ]; then msgattrib $language_code.po --only-fuzzy --no-obsolete | grep . >> /dev/null if [ $? -eq 0 ]; then translate_this="yes" @@ -304,16 +304,16 @@ do translate_this="yes" fi # creating statistics - if [ -f $language_code.po ]; then + if [ -f "$language_code.po" ]; then statistics_git_po=`LC_ALL=C msgfmt --statistics --verbose $language_code.po -o /dev/null 2>&1 | tail -1` fi - if [ -f $pot_filename ]; then + if [ -f "$pot_filename" ]; then statistics_git_pot=`LC_ALL=C msgfmt --statistics --verbose $pot_filename -o /dev/null 2>&1 | tail -1` fi # checking the syntax of po file from git if required if [ $check_po_syntax -eq 1 ]; then - if [ -f $language_code.po ]; then + if [ -f "$language_code.po" ]; then msgfmt --statistics --verbose -c $language_code.po -o /dev/null 2>&1 | tee -a "$logfile"_this_run.log else # Automatic test is not possible. echo "File $language_code.po is not present yet in ${translate_projects_po[$translate_project_name_po]} for msgfmt test. Please translate it and commit & push it to git." | tee -a "$logfile"_this_run.log @@ -321,7 +321,7 @@ do fi # checking the syntax of pot file from git if required if [ $check_pot_syntax -eq 1 ]; then - if [ -f $pot_filename ]; then + if [ -f "$pot_filename" ]; then msgfmt -c $pot_filename -o /dev/null 2>&1 | tee -a "$logfile"_this_run.log else # Automatic test is not possible. echo "File *.pot is not present in ${translate_projects_po[$translate_project_name_po]}. Please report that on our mailing list." | tee -a "$logfile"_this_run.log @@ -344,7 +344,7 @@ do # echo "File $language_code.po is not present yet in ${translate_projects_po[$translate_project_name_po]}. Copying to working directory is not possible." | tee -a "$logfile"_this_run.log echo -n # nop fi - if [ -f $pot_filename ]; then + if [ -f "$pot_filename" ]; then # testing for differences of *.pot file from git and working copy if [ -f "$working_translations_directory/$translate_project_name_po/$pot_filename" ]; then diff -q "$git_directory/${translate_projects_po[$translate_project_name_po]}/$pot_filename" "$working_translations_directory/$translate_project_name_po/$pot_filename" | tee -a "$logfile"_this_run.log @@ -369,7 +369,7 @@ do rm new_pot_$language_code.po # remove it as it's no good anyway fi # comparing new_pot_lang.po from working copy - if [ -f new_pot_$language_code.po ]; then + if [ -f "new_pot_$language_code.po" ]; then statistics_wd_po=`LC_ALL=C msgfmt --statistics --verbose new_pot_$language_code.po -o /dev/null 2>&1 | tail -1` # checking for fuzzy and untranslated strings in fresh new_pot_$language_code.po msgattrib new_pot_$language_code.po --only-fuzzy --no-obsolete 2>&1 | grep . >> /dev/null @@ -399,7 +399,7 @@ do echo -n # nop fi # comparing git lang.po from working copy lang.po - if [ -f $language_code.po ]; then + if [ -f "$language_code.po" ]; then diff -q $wip_po_filename $language_code.po | tee -a "$logfile"_this_run.log diff_exit_status_2=${PIPESTATUS[0]} # this reads and remembers exit status of first command in pipe (diff in this case) # if [ $? -eq 0 ]; then -- cgit v1.2.1