From f4e09aff23b8436d5f9ce86a4c6662a0f66f4671 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 23 Aug 2011 16:09:45 -0500 Subject: Add a test to test the space before an ellipsis at the end of a string --- Makefile.am | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 5850769..c9e4a44 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,8 +35,12 @@ dist-hook: fi TESTS = \ - test-ellipsis + test-ellipsis \ + test-space-ellipsis +##### +# Tests for there being proper ellipsis instead of three periods in a row +##### test-ellipsis: po @echo "#!/bin/bash" > $@ @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@ @@ -44,4 +48,14 @@ test-ellipsis: po @echo "exit 0" >> $@ @chmod +x $@ +##### +# Tests for there being a space before an ellipsis +##### +test-space-ellipsis: po + @echo "#!/bin/bash" > $@ + @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@ + @echo "grep -c -e \"^msgid.* …\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Ellipsis found in user visible strings\" >&2 && exit 1" >> $@ + @echo "exit 0" >> $@ + @chmod +x $@ + CLEANFILES = $(TESTS) -- cgit v1.2.3