mirror of
https://github.com/koreader/koreader.git
synced 2026-12-03 02:33:44 +00:00
kodev check: add a check for gettext warnings
This commit is contained in:
1 parent
7b0938bd87
commit
53e89a3dca
1 file changed
+11
@@ -38,6 +38,17 @@ if [ "${untagged_todo}" ]; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
echo -e "\n${ANSI_GREEN}Checking for gettext warnings${ANSI_RESET}"
|
||||
gettext_output=$(make -o po pot 2>&1)
|
||||
gettext_exit_code=$?
|
||||
printf '%s\n' "${gettext_output}"
|
||||
if [ ${gettext_exit_code} -ne 0 ]; then
|
||||
exit_code=1
|
||||
elif grep -q '^xgettext: warning:' <<<"${gettext_output}"; then
|
||||
echo -e "\n${ANSI_RED}Warning: xgettext reported warnings.${ANSI_RESET}"
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
echo -e "\n${ANSI_GREEN}Luacheck results${ANSI_RESET}"
|
||||
luacheck ${PARALLEL_JOBS:+-j "${PARALLEL_JOBS}"} -q {reader,setupkoenv,datastorage}.lua frontend plugins spec platform/remarkable/qtfb_keep_alive.lua || exit_code=1
|
||||
|
||||
|
||||
Reference in new issue
Block a user