No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-17
blobf7f9da81e23ad469c5db5870a26dcc120752ad40
1 #! /bin/sh
3 # -u, --unique (equivalent to --less-than=2): we are interested in unique
4 # entries only (entries occuring less than 2 times). But don't drop the
5 # header entry; otherwise msgcomm will fail for multibyte strings.
7 tmpfiles=""
8 trap 'rm -fr $tmpfiles' 1 2 3 15
10 tmpfiles="$tmpfiles mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3"
11 cat <<EOF > mcomm-test17.in1
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: GNU one 1.2.3\n"
15 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
16 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
17 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
18 "Language-Team: German <de@li.org>\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=ISO-8859-1\n"
21 "Content-Transfer-Encoding: 8bit\n"
23 # occurs 3 times
24 #: first.c:123
25 msgid "1"
26 msgstr "1x"
27 EOF
29 cat <<EOF > mcomm-test17.in2
30 msgid ""
31 msgstr ""
32 "Project-Id-Version: GNU one 1.2.3\n"
33 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
34 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
35 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
36 "Language-Team: German <de@li.org>\n"
37 "MIME-Version: 1.0\n"
38 "Content-Type: text/plain; charset=ISO-8859-1\n"
39 "Content-Transfer-Encoding: 8bit\n"
41 #: hunt.c:759
42 msgid "1"
43 msgstr ""
44 EOF
46 cat <<\EOF > mcomm-test17.in3
47 msgid ""
48 msgstr ""
49 "Project-Id-Version: GNU one 1.2.3\n"
50 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
51 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
52 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
53 "Language-Team: German <de@li.org>\n"
54 "MIME-Version: 1.0\n"
55 "Content-Type: text/plain; charset=ISO-8859-1\n"
56 "Content-Transfer-Encoding: 8bit\n"
58 #: hunt.c:789
59 msgid "1"
60 msgstr ""
62 # unique
63 #: hunt.c:890
64 msgid "5"
65 msgstr "fünf"
66 EOF
68 tmpfiles="$tmpfiles mcomm-test17.out"
69 : ${MSGCOMM=msgcomm}
71 ${MSGCOMM} -u mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3 \
72 -o mcomm-test17.out
73 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
75 tmpfiles="$tmpfiles mcomm-test17.ok"
76 cat << \EOF > mcomm-test17.ok
77 msgid ""
78 msgstr ""
79 "Project-Id-Version: GNU one 1.2.3\n"
80 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
81 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
82 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
83 "Language-Team: German <de@li.org>\n"
84 "MIME-Version: 1.0\n"
85 "Content-Type: text/plain; charset=ISO-8859-1\n"
86 "Content-Transfer-Encoding: 8bit\n"
88 # unique
89 #: hunt.c:890
90 msgid "5"
91 msgstr "fünf"
92 EOF
94 : ${DIFF=diff}
95 ${DIFF} mcomm-test17.ok mcomm-test17.out
96 result=$?
98 rm -fr $tmpfiles
100 exit $result