From 688ba6467083455566360fb244d767cd92593471 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 8 Sep 2010 18:39:59 +0100 Subject: [PATCH] Add check for missing translations So that we ship all the translations, and don't miss updating LINGUAS. --- Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.am b/Makefile.am index 70972af..b747966 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,3 +2,12 @@ AUTOMAKE_OPTIONS = dist-bzip2 SUBDIRS = src data tests pam doc po EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in +check: check-translations + +check-translations: + @for i in $(top_srcdir)/po/*.po ; do \ + if ! grep -q `basename $$i | sed 's,.po,,'` $(top_srcdir)/po/LINGUAS ; then \ + echo '***' `basename $$i | sed 's,.po,,'` missing from po/LINGUAS '***' ; \ + exit 1; \ + fi; \ + done;