build: abort the update script if a PO file contains a control character

This is to prevent the ^Q from creeping back into the Romanian PO file.
master
Benno Schulenberg 2020-09-09 09:34:41 +02:00
parent 0bc834e6f3
commit 50aa3587d4
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ for pofile in *.po; do
msgattrib --no-obsolete --no-fuzzy $pofile >trimmed.po || exit 4
mv trimmed.po $pofile || exit 4
done
echo
if grep "[[:cntrl:]]" ./*.po; then
echo "*** PO file contains control character"; exit 5;
fi
# If needed, fix a problem in the Makefile template.
grep -q '^datarootdir' Makefile.in.in || \