[Pkg-isocodes-devel] r664 - in trunk/iso-codes: . iso_3166
iso_3166/iso_3166_2 iso_4217 iso_639 iso_639/iso_639_3
Tobias Toedter
toddy-guest at costa.debian.org
Sun Oct 1 10:02:21 UTC 2006
Author: toddy-guest
Date: 2006-10-01 10:02:20 +0000 (Sun, 01 Oct 2006)
New Revision: 664
Modified:
trunk/iso-codes/Makefile.am
trunk/iso-codes/iso_3166/Makefile.am
trunk/iso-codes/iso_3166/iso_3166_2/Makefile.am
trunk/iso-codes/iso_4217/Makefile.am
trunk/iso-codes/iso_639/Makefile.am
trunk/iso-codes/iso_639/iso_639_3/Makefile.am
trunk/iso-codes/rules.make
Log:
Enable a check for wrong encodings of .po files
Modified: trunk/iso-codes/Makefile.am
===================================================================
--- trunk/iso-codes/Makefile.am 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/Makefile.am 2006-10-01 10:02:20 UTC (rev 664)
@@ -13,7 +13,7 @@
.PHONY: release
-release: distcheck
+release: check distcheck
rm -f iso-codes-$(VERSION).tar.gz.sig
rm -f iso-codes-$(VERSION).tar.bz2.sig
gpg --detach-sign iso-codes-$(VERSION).tar.gz
Modified: trunk/iso-codes/iso_3166/Makefile.am
===================================================================
--- trunk/iso-codes/iso_3166/Makefile.am 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/iso_3166/Makefile.am 2006-10-01 10:02:20 UTC (rev 664)
@@ -31,4 +31,6 @@
$(mofiles) \
$(tab_DATA)
+check-local: check-content
+
include $(top_srcdir)/rules.make
Modified: trunk/iso-codes/iso_3166/iso_3166_2/Makefile.am
===================================================================
--- trunk/iso-codes/iso_3166/iso_3166_2/Makefile.am 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/iso_3166/iso_3166_2/Makefile.am 2006-10-01 10:02:20 UTC (rev 664)
@@ -21,4 +21,6 @@
MOSTLYCLEANFILES = \
$(mofiles)
+check-local: check-content
+
include $(top_srcdir)/rules.make
Modified: trunk/iso-codes/iso_4217/Makefile.am
===================================================================
--- trunk/iso-codes/iso_4217/Makefile.am 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/iso_4217/Makefile.am 2006-10-01 10:02:20 UTC (rev 664)
@@ -20,4 +20,6 @@
MOSTLYCLEANFILES = \
$(mofiles)
+check-local: check-content
+
include $(top_srcdir)/rules.make
Modified: trunk/iso-codes/iso_639/Makefile.am
===================================================================
--- trunk/iso-codes/iso_639/Makefile.am 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/iso_639/Makefile.am 2006-10-01 10:02:20 UTC (rev 664)
@@ -32,4 +32,6 @@
$(mofiles) \
$(tab_DATA)
+check-local: check-content
+
include $(top_srcdir)/rules.make
Modified: trunk/iso-codes/iso_639/iso_639_3/Makefile.am
===================================================================
--- trunk/iso-codes/iso_639/iso_639_3/Makefile.am 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/iso_639/iso_639_3/Makefile.am 2006-10-01 10:02:20 UTC (rev 664)
@@ -21,4 +21,6 @@
MOSTLYCLEANFILES = \
$(mofiles)
+check-local: check-content
+
include $(top_srcdir)/rules.make
Modified: trunk/iso-codes/rules.make
===================================================================
--- trunk/iso-codes/rules.make 2006-10-01 09:50:18 UTC (rev 663)
+++ trunk/iso-codes/rules.make 2006-10-01 10:02:20 UTC (rev 664)
@@ -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)
More information about the Pkg-isocodes-devel
mailing list