From f5a99f5a6383b5bf892139e85f791a7dbccafc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 4 Dec 2014 10:29:46 +0100 Subject: Improve locales compiling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - return correct error code on failure - try to compile all locales and report error for each failing - color error messages Signed-off-by: Michal Čihař --- scripts/generate-mo | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/generate-mo b/scripts/generate-mo index bf0251ea50..9e16927d97 100755 --- a/scripts/generate-mo +++ b/scripts/generate-mo @@ -21,9 +21,16 @@ if [ ! -z "$1" ] ; then exit $? fi +result=0 for x in po/*.po ; do compile $x - if [ $? != 0 ] ; then - return $? + ret=$? + if [ $ret != 0 ] ; then + tput setf 4 >&2 + echo Error when compiling $x >&2 + tput sgr0 >&2 + result=$ret fi done + +exit $result -- cgit v1.2.3