mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-15 03:52:39 +00:00
Add `set -euxo pipefail` to `check-translations.sh` to ensure the CI fails when contributors do not update the POT file with their changes. Currently, the CI passes even if the POT file is outdated and the POT has not been updated for a long time.
17 lines
398 B
Bash
Executable File
17 lines
398 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
old_pot=$(mktemp)
|
|
cp po/com.mitchellh.ghostty.pot "$old_pot"
|
|
zig build update-translations
|
|
|
|
# Compare previous POT to current POT
|
|
msgcmp "$old_pot" po/com.mitchellh.ghostty.pot --use-untranslated
|
|
|
|
# Compare all other POs to current POT
|
|
for f in po/*.po; do
|
|
# Ignore untranslated entries
|
|
msgcmp --use-untranslated "$f" po/com.mitchellh.ghostty.pot;
|
|
done
|