i18n/tools/check-po.sh
ChJR e05d6d58a9 Fixes tox pep8 error in macOS
Let's remove xargs GNU Extended option -r, --no-run-if-empty in tox.ini.

Change-Id: Ia014da76d51fa538513702560cd86da2bb1ae958
2017-08-21 09:03:31 +00:00

11 lines
193 B
Bash
Executable File

#!/bin/bash
set -e
FIND_DIRS=${*:-"."}
find $FIND_DIRS -type f \( -name '*.po' -o -name '*.pot' \) -print0 | \
while read -r -d '' FILE; do
msgfmt --check-format -o /dev/null "$FILE"
done