Fix localization: Fix build: Improve checking.

Problem  : Currently, 'make check' gives no explanations when it fails,
           only the name of the po file which caused the halt. Then,
           you have to manually run check.vim on that file to see what
           happened.
Solution : Generate a 'check.log' file on every execution of check.vim
           (overwriting if already existing). That way, when make halts,
           you can go there and see details about failure.
This commit is contained in:
Eliseo Martínez
2014-05-26 14:26:11 +02:00
committed by Justin M. Keyes
parent 8e3634212d
commit 89bdcb1ed8

View File

@@ -6,6 +6,8 @@
if 1 " Only execute this if the eval feature is available. if 1 " Only execute this if the eval feature is available.
redir! > check.log
" Function to get a split line at the cursor. " Function to get a split line at the cursor.
" Used for both msgid and msgstr lines. " Used for both msgid and msgstr lines.
" Removes all text except % items and returns the result. " Removes all text except % items and returns the result.
@@ -82,6 +84,8 @@ if error == 0
echo "OK" echo "OK"
endif endif
redir END
let &wrapscan = s:save_wrapscan let &wrapscan = s:save_wrapscan
unlet s:save_wrapscan unlet s:save_wrapscan