diff options
author | Ted Gould <ted@gould.cx> | 2011-08-31 13:38:17 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-08-31 13:38:17 -0500 |
commit | 3a3145da6af3fc186a536ead2d24b7035e1d82ba (patch) | |
tree | 4c6e62aaf2d540775532ecc6a0371b0097b4871d /Makefile.am | |
parent | b0eef117956490d332413394adb4bfec13218d8e (diff) | |
parent | 9e698820479b2854678ce985dfdd5383cbd29ab7 (diff) | |
download | ayatana-indicator-session-3a3145da6af3fc186a536ead2d24b7035e1d82ba.tar.gz ayatana-indicator-session-3a3145da6af3fc186a536ead2d24b7035e1d82ba.tar.bz2 ayatana-indicator-session-3a3145da6af3fc186a536ead2d24b7035e1d82ba.zip |
Update to Ubuntu Desktop
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 5850769..d63dac8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,8 +35,13 @@ dist-hook: fi TESTS = \ - test-ellipsis + test-ellipsis \ + test-space-ellipsis \ + test-ascii-quotes +##### +# 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 +49,26 @@ 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 \"Space before ellipsis found in user visible strings\" >&2 && exit 1" >> $@ + @echo "exit 0" >> $@ + @chmod +x $@ + +##### +# Tests for ASCII quote types +##### +test-ascii-quotes: po + @echo "#!/bin/bash" > $@ + @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@ + @echo "grep -c -e \"^msgid \\\".*'.*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII apostrophy found in user visible strings\" >&2 && exit 1" >> $@ + @echo "grep -c -e \"^msgid \\\".*\\\".*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII quote found in user visible strings\" >&2 && exit 1" >> $@ + @echo "grep -c -e \"^msgid \\\".*\\\`.*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII backtick found in user visible strings\" >&2 && exit 1" >> $@ + @echo "exit 0" >> $@ + @chmod +x $@ + CLEANFILES = $(TESTS) |