wesnoth/utils/travis/check_utf8.sh
Pentarctagon bf3db2cbd4 Add NLS CI job.
Cmake only since scons fails with an encoding error on Ubuntu 16.04.
2021-01-31 15:00:25 -06:00

12 lines
565 B
Bash
Executable file

#!/bin/bash
# Install isutf8 program (from package "moreutils" at least in linux mint)
# in order to use this script
#
# This script assumes that the current working directory is the root of the
# wesnoth repository.
set -e
find src/ -type f -print0 | xargs -0 isutf8 --
find data/ -not -name "*.png" -not -name "*.ogg" -not -name "*.jpg" -not -name "*.wav" -not -name "*.gif" -not -name "*.xcf" -not -name "*.bin" \
-not -name "test_cve_2018_1999023_2.cfg" -type f -print0 | xargs -0 isutf8 --
find po/ -type f -print0 | xargs -0 isutf8 --
isutf8 changelog.md