1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 06:45:34 +00:00
openmw/CI/check_qt_translations.sh
2024-02-01 09:47:27 +04:00

11 lines
490 B
Bash
Executable file

#!/bin/bash -ex
set -o pipefail
LUPDATE="${LUPDATE:-lupdate}"
${LUPDATE:?} apps/wizard -ts files/lang/wizard_*.ts
${LUPDATE:?} apps/launcher -ts files/lang/launcher_*.ts
${LUPDATE:?} components/contentselector components/process -ts files/lang/components_*.ts
! (git diff --name-only | grep -q "^") || (echo -e "\033[0;31mBuild a 'translations' CMake target to update Qt localization for these files:\033[0;0m"; git diff --name-only | xargs -i echo -e "\033[0;31m{}\033[0;0m"; exit -1)