No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-13
blobaae35a7e8d4e8d3d3aaa679ac4cfce8a2dd38cb1
1 #! /bin/sh
3 # Test merging of a message which has c-format specified in ref.pot but not
4 # in def.po.
6 tmpfiles=""
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles mm-test13.po"
10 cat <<EOF > mm-test13.po
11 # SOME DESCRIPTIVE TITLE.
12 # Copyright (C) YEAR Free Software Foundation, Inc.
13 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
15 msgid ""
16 msgstr ""
17 "Project-Id-Version: cog_training 1.0\n"
18 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
19 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
20 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
21 "Language-Team: German <de@li.org>\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=ISO-8859-1\n"
24 "Content-Transfer-Encoding: 8bit\n"
26 #: foobar.c:11
27 #, c-format
28 msgid "file named %s"
29 msgstr "Datei namens %s"
31 #: foobar.c:12
32 #, c-format
33 msgid "directory named %s"
34 msgstr "Verzeichnis namens %s"
36 #: foobar.c:13
37 msgid "result %s"
38 msgstr "Ergebnis %s"
40 #: foobar.c:14
41 msgid "intermediate result %s"
42 msgstr "Zwischenergebnis %d"
44 #: foobar.c:15
45 msgid "%age"
46 msgstr "%-Satz"
47 EOF
49 tmpfiles="$tmpfiles mm-test13.pot"
50 cat <<EOF > mm-test13.pot
51 # SOME DESCRIPTIVE TITLE.
52 # Copyright (C) YEAR Free Software Foundation, Inc.
53 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55 msgid ""
56 msgstr ""
57 "Project-Id-Version: PACKAGE VERSION\n"
58 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
59 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
60 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
61 "Language-Team: LANGUAGE <LL@li.org>\n"
62 "MIME-Version: 1.0\n"
63 "Content-Type: text/plain; charset=ISO-8859-1\n"
64 "Content-Transfer-Encoding: 8bit\n"
66 #: foobar.c:21
67 #, c-format
68 msgid "file named %s"
69 msgstr ""
71 #: foobar.c:22
72 msgid "directory named %s"
73 msgstr ""
75 #: foobar.c:23
76 #, c-format
77 msgid "result %s"
78 msgstr ""
80 #: foobar.c:24
81 #, c-format
82 msgid "intermediate result %s"
83 msgstr ""
85 #: foobar.c:25
86 msgid "%age"
87 msgstr ""
88 EOF
90 tmpfiles="$tmpfiles mm-test13.out"
91 : ${MSGMERGE=msgmerge}
92 ${MSGMERGE} -q mm-test13.po mm-test13.pot -o mm-test13.out
93 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
95 tmpfiles="$tmpfiles mm-test13.ok"
96 cat <<EOF > mm-test13.ok
97 # SOME DESCRIPTIVE TITLE.
98 # Copyright (C) YEAR Free Software Foundation, Inc.
99 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
101 msgid ""
102 msgstr ""
103 "Project-Id-Version: cog_training 1.0\n"
104 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
105 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
106 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
107 "Language-Team: German <de@li.org>\n"
108 "MIME-Version: 1.0\n"
109 "Content-Type: text/plain; charset=ISO-8859-1\n"
110 "Content-Transfer-Encoding: 8bit\n"
112 #: foobar.c:21
113 #, c-format
114 msgid "file named %s"
115 msgstr "Datei namens %s"
117 #: foobar.c:22
118 msgid "directory named %s"
119 msgstr "Verzeichnis namens %s"
121 #: foobar.c:23
122 #, c-format
123 msgid "result %s"
124 msgstr "Ergebnis %s"
126 #: foobar.c:24
127 #, fuzzy, c-format
128 msgid "intermediate result %s"
129 msgstr "Zwischenergebnis %d"
131 #: foobar.c:25
132 msgid "%age"
133 msgstr "%-Satz"
136 : ${DIFF=diff}
137 ${DIFF} mm-test13.ok mm-test13.out
138 result=$?
140 rm -fr $tmpfiles
142 exit $result