diff options
author | Filip Komar <filip@mageia.org> | 2014-03-17 15:28:02 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-03-17 15:28:02 +0000 |
commit | ceea1d62fbf46a80c3757ce03c37c053be04b15d (patch) | |
tree | 734af5dad4aca3ff8197341dbc98ab2b6a97eaa8 /tools | |
parent | 2744f259ac2a749061d2d706a5070eb12b01b39d (diff) | |
download | www-ceea1d62fbf46a80c3757ce03c37c053be04b15d.tar www-ceea1d62fbf46a80c3757ce03c37c053be04b15d.tar.gz www-ceea1d62fbf46a80c3757ce03c37c053be04b15d.tar.bz2 www-ceea1d62fbf46a80c3757ce03c37c053be04b15d.tar.xz www-ceea1d62fbf46a80c3757ce03c37c053be04b15d.zip |
small improvement in error management
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rebuild_gettext_catalogs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh index 1367871ff..50a9e4cd6 100755 --- a/tools/rebuild_gettext_catalogs.sh +++ b/tools/rebuild_gettext_catalogs.sh @@ -49,7 +49,6 @@ do mv ./langs/en/$resource.tmp ./langs/en/$resource.pot rm ./langs/en/$resource.copy else - rm ./langs/en/$resource.copy rm ./langs/en/$resource.pot if [ -f ./langs/en/$resource.copy ]; then mv ./langs/en/$resource.copy ./langs/en/$resource.pot @@ -75,11 +74,12 @@ do echo merging $directory/$resource.po msgmerge --quiet --no-wrap $directory/$resource.po ./langs/en/$resource.pot > $directory/$resource.tmp msgmerge_error_level=$? # catch msgmerge error level - mv $directory/$resource.tmp $directory/$resource.po -# msgfmt --statistics --verbose -c $directory/$resource.po -o /dev/null # usefull for debuging (msgctxt "/web/en/ or msgctxt "en/) if [ $msgmerge_error_level -gt 0 ]; then errors[$directory/$resource]=60 echo "$directory"/$resource.po could not be created succesfully + else + mv $directory/$resource.tmp $directory/$resource.po +# msgfmt --statistics --verbose -c $directory/$resource.po -o /dev/null # usefull for debuging (msgctxt "/web/en/ or msgctxt "en/) fi fi fi |