diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-02-24 22:37:18 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-02-24 22:37:18 +0000 |
commit | 9588ba1f4a58078440101005285f6daae126465b (patch) | |
tree | 27d6a4fab9f70ccf4464ef08241d452dcaaff342 /tools/ci | |
parent | 1a0a23243c408e056a439bd5ee7cb5491b5348d8 (diff) | |
download | mv-9588ba1f4a58078440101005285f6daae126465b.tar.gz mv-9588ba1f4a58078440101005285f6daae126465b.tar.bz2 mv-9588ba1f4a58078440101005285f6daae126465b.tar.xz mv-9588ba1f4a58078440101005285f6daae126465b.zip |
Add POTFILES.in updater check to linter CI job.
while processing mana/plus!132 I spotted what looked like an ommision of several
src/progs/{manaplus,manaverse} files from POTFILES.in, but as it turned
out, they have no strings marked for translation (start with "_(").
Squashed with:
* Just force LC_COLLATE=C and commit POTFILES.in changes required to make
this happen. Don't know how to repro CI's sorting locally and it's
pointless as my local sort is clearly wrong. See traderecv.cpp's position
for why.
* The correct locale variable to set should be LC_COLLATE, which is
probably set by LANG on all platforms and so this will fail, again.
* sort is still not preserving the order of files :/
* Ensure the order of files remains the same regardless of platform.
* POTFILES update to pass CI :)
****
mana/plus!133
Diffstat (limited to 'tools/ci')
-rwxr-xr-x | tools/ci/jobs/potfiles_update_check.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/ci/jobs/potfiles_update_check.sh b/tools/ci/jobs/potfiles_update_check.sh new file mode 100755 index 000000000..6610d4332 --- /dev/null +++ b/tools/ci/jobs/potfiles_update_check.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +set -e # Fail if any command fails +set -u # Fail if any variable is unset when used + +export LOGFILE=potfiles.log +source ./tools/ci/scripts/init.sh + +./po/POTgen.sh + +# error if POTgen applied any changes +git diff >> "$ERRFILE" + +# Save in-progress work in case someone runs this script manually. +#git stash push -m "POTgen run" +# Restore repository back to original state for other ci jobs. +#git reset --hard + +run_check_warnings + +echo ok |