diff --git a/tools/gitlab-analyze.sh b/tools/gitlab-analyze.sh index 9014b18a36..269ca2c5d7 100755 --- a/tools/gitlab-analyze.sh +++ b/tools/gitlab-analyze.sh @@ -43,10 +43,12 @@ show_duration redemption-analyzer.sh # check .po files bjam update-po -[[ -z $(git status -s ./tools/i18n/po/*/) ]] || { +if ! grep -E '^([-+]#: |@@|[-+]"|diff |index |[-]{3} |[+]{3})' -qv < <( + git diff --unified=0 ./tools/i18n/po/*/ +); then echo 'Error: .po files are outdated (run bjam update-po)' exit 1 -} +fi # Python tests and coverage # @{ diff --git a/tools/jenkins.sh b/tools/jenkins.sh index 7a0df2e003..939bf283c8 100755 --- a/tools/jenkins.sh +++ b/tools/jenkins.sh @@ -38,13 +38,6 @@ if (( $fast == 0 )); then ./tools/c++-analyzer/redemption-analyzer.sh show_duration redemption-analyzer.sh - # check .po files - bjam update-po - [[ -z $(git status -s ./tools/i18n/po/*/) ]] || { - echo 'Error: .po files are outdated (run bjam update-po)' - exit 1 - } - # Python tests # @{