diff options
author | Tobias Quathamer <toddy@debian.org> | 2006-10-01 09:02:20 +0000 |
---|---|---|
committer | Tobias Quathamer <toddy@debian.org> | 2006-10-01 09:02:20 +0000 |
commit | 29eead15d2a925056f8aeb86ff83e1be24d5c0b7 (patch) | |
tree | 92bb5acbb765c7d85c2488670356e0c232672999 /rules.make | |
parent | fd9a787ca7d02d7be5d81429515d9a8ca77daf71 (diff) | |
download | iso-codes-29eead15d2a925056f8aeb86ff83e1be24d5c0b7.tar.gz |
Enable a check for wrong encodings of .po files
Diffstat (limited to 'rules.make')
-rw-r--r-- | rules.make | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2,6 +2,18 @@ %.mo: %.po $(MSGFMT) --verbose --check $< -o $@ +.PHONY: check-content +check-content: + @grep "Content-Type" *po | grep -v "UTF-8" && touch found-non-utf.stamp || true + @if [ -e found-non-utf.stamp ]; then \ + echo "*********"; \ + echo "* Error *"; \ + echo "*********"; \ + echo "At least one file is not encoded in UTF-8. Please check."; \ + rm -f found-non-utf.stamp; \ + false; \ + fi + localedir = $(datadir)/locale install-data-hook: $(mofiles) |