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
parent
0bc834e6f3
commit
50aa3587d4
|
@ -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 || \
|
||||
|
|
Loading…
Reference in New Issue