~ubuntu-branches/ubuntu/oneiric/indicator-session/oneiric-proposed

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-08-25 08:58:56 UTC
  • mfrom: (1.1.34 upstream)
  • Revision ID: james.westby@ubuntu.com-20110825085856-qtuta6vqal1iw7mt
Tags: 0.3.3-0ubuntu1
* New upstream release.
  - User menu should still show even if there is only 1 user (LP: #831758)
  - Bluetooth item in menu not needed (LP: #825111)
  - Newly created users are not added to the menu until next 
    login (LP: #552048)
  - Users list in shutdown menu is not updated on user 
    deletion (LP: #557608)
  - should use gsettings rather than gconf (LP: #656323)
* debian/control
  - Bump dbusmenu build dep to >= 0.4.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        else \
34
34
                        echo Failed to generate AUTHORS: not a branch >&2; \
35
35
        fi
 
36
 
 
37
TESTS = \
 
38
        test-ellipsis \
 
39
        test-space-ellipsis \
 
40
        test-ascii-quotes
 
41
 
 
42
#####
 
43
# Tests for there being proper ellipsis instead of three periods in a row
 
44
#####
 
45
test-ellipsis: po
 
46
        @echo "#!/bin/bash" > $@
 
47
        @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@
 
48
        @echo "grep -c -e \"^msgid.*\.\.\.\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Ellipsis found in user visible strings\" >&2 && exit 1" >> $@
 
49
        @echo "exit 0" >> $@
 
50
        @chmod +x $@
 
51
 
 
52
#####
 
53
# Tests for there being a space before an ellipsis
 
54
#####
 
55
test-space-ellipsis: po
 
56
        @echo "#!/bin/bash" > $@
 
57
        @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@
 
58
        @echo "grep -c -e \"^msgid.* …\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"Space before ellipsis found in user visible strings\" >&2 && exit 1" >> $@
 
59
        @echo "exit 0" >> $@
 
60
        @chmod +x $@
 
61
 
 
62
#####
 
63
# Tests for ASCII quote types
 
64
#####
 
65
test-ascii-quotes: po
 
66
        @echo "#!/bin/bash" > $@
 
67
        @echo "(cd po && make $(GETTEXT_PACKAGE).pot)" >> $@
 
68
        @echo "grep -c -e \"^msgid \\\".*'.*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII apostrophy found in user visible strings\" >&2 && exit 1" >> $@
 
69
        @echo "grep -c -e \"^msgid \\\".*\\\".*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII quote found in user visible strings\" >&2 && exit 1" >> $@
 
70
        @echo "grep -c -e \"^msgid \\\".*\\\`.*\\\"\" po/$(GETTEXT_PACKAGE).pot > /dev/null && echo \"ASCII backtick found in user visible strings\" >&2 && exit 1" >> $@
 
71
        @echo "exit 0" >> $@
 
72
        @chmod +x $@
 
73
 
 
74
CLEANFILES = $(TESTS)