msgcat-10 revision 1.1 1 1.1 christos #! /bin/sh
2 1.1 christos
3 1.1 christos # Verify msgcat of two files, when the header entries have different comments
4 1.1 christos # but the same contents. The resulting header entry is not marked fuzzy,
5 1.1 christos # because the #-#-#-#-# are only in comments and do not necessarily require
6 1.1 christos # translator attention; in other words, an msgstr which is valid in both input
7 1.1 christos # files is also valid in the result.
8 1.1 christos
9 1.1 christos tmpfiles=""
10 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15
11 1.1 christos
12 1.1 christos tmpfiles="$tmpfiles mcat-test10.in1 mcat-test10.in2"
13 1.1 christos cat <<\EOF > mcat-test10.in1
14 1.1 christos # German message file for xyz.
15 1.1 christos # Copyright (C) 1999, 2000, 2001 xyz.
16 1.1 christos # Kab Def <ke (at] zzz.uucp>, 2000.
17 1.1 christos # Def Kab <dk (at] zzz.uucp>, 2001.
18 1.1 christos #
19 1.1 christos msgid ""
20 1.1 christos msgstr ""
21 1.1 christos "Project-Id-Version: xyz\n"
22 1.1 christos "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
23 1.1 christos "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
24 1.1 christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
25 1.1 christos "Language-Team: German <i18n (at] zzz.uucp>\n"
26 1.1 christos "MIME-Version: 1.0\n"
27 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n"
28 1.1 christos "Content-Transfer-Encoding: 8bit\n"
29 1.1 christos
30 1.1 christos #. Help text (HTML-like) START
31 1.1 christos #: clients/inst_ask_config.ycp:119
32 1.1 christos msgid ""
33 1.1 christos "Congratulations!"
34 1.1 christos msgstr ""
35 1.1 christos "Glckwunsch!"
36 1.1 christos EOF
37 1.1 christos
38 1.1 christos cat <<\EOF > mcat-test10.in2
39 1.1 christos # German message file for xyz.
40 1.1 christos # Copyright (C) 1999, 2000, 2001 xyz.
41 1.1 christos # Kab Def <ke (at] zzz.uucp>, 2000.
42 1.1 christos #
43 1.1 christos msgid ""
44 1.1 christos msgstr ""
45 1.1 christos "Project-Id-Version: xyz\n"
46 1.1 christos "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
47 1.1 christos "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
48 1.1 christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
49 1.1 christos "Language-Team: German <i18n (at] zzz.uucp>\n"
50 1.1 christos "MIME-Version: 1.0\n"
51 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n"
52 1.1 christos "Content-Transfer-Encoding: 8bit\n"
53 1.1 christos
54 1.1 christos #. Help text (HTML-like) START
55 1.1 christos #: clients/inst_ask_config.ycp:119
56 1.1 christos msgid ""
57 1.1 christos "Congratulations!"
58 1.1 christos msgstr ""
59 1.1 christos "Glckwunsch!"
60 1.1 christos EOF
61 1.1 christos
62 1.1 christos tmpfiles="$tmpfiles mcat-test10.out"
63 1.1 christos rm -f mcat-test10.out
64 1.1 christos
65 1.1 christos : ${MSGCAT=msgcat}
66 1.1 christos ${MSGCAT} --more-than=0 -o mcat-test10.out \
67 1.1 christos mcat-test10.in1 mcat-test10.in2
68 1.1 christos test $? = 0 || { rm -fr $tmpfiles; exit 1; }
69 1.1 christos
70 1.1 christos tmpfiles="$tmpfiles mcat-test10.ok"
71 1.1 christos cat <<\EOF > mcat-test10.ok
72 1.1 christos # #-#-#-#-# mcat-test10.in1 (xyz) #-#-#-#-#
73 1.1 christos # German message file for xyz.
74 1.1 christos # Copyright (C) 1999, 2000, 2001 xyz.
75 1.1 christos # Kab Def <ke (at] zzz.uucp>, 2000.
76 1.1 christos # Def Kab <dk (at] zzz.uucp>, 2001.
77 1.1 christos #
78 1.1 christos # #-#-#-#-# mcat-test10.in2 (xyz) #-#-#-#-#
79 1.1 christos # German message file for xyz.
80 1.1 christos # Copyright (C) 1999, 2000, 2001 xyz.
81 1.1 christos # Kab Def <ke (at] zzz.uucp>, 2000.
82 1.1 christos #
83 1.1 christos msgid ""
84 1.1 christos msgstr ""
85 1.1 christos "Project-Id-Version: xyz\n"
86 1.1 christos "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
87 1.1 christos "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
88 1.1 christos "Last-Translator: Kab Def <ke (at] zzz.uucp>\n"
89 1.1 christos "Language-Team: German <i18n (at] zzz.uucp>\n"
90 1.1 christos "MIME-Version: 1.0\n"
91 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n"
92 1.1 christos "Content-Transfer-Encoding: 8bit\n"
93 1.1 christos
94 1.1 christos #. Help text (HTML-like) START
95 1.1 christos #: clients/inst_ask_config.ycp:119
96 1.1 christos msgid "Congratulations!"
97 1.1 christos msgstr "Glckwunsch!"
98 1.1 christos EOF
99 1.1 christos
100 1.1 christos : ${DIFF=diff}
101 1.1 christos ${DIFF} mcat-test10.ok mcat-test10.out
102 1.1 christos result=$?
103 1.1 christos
104 1.1 christos rm -fr $tmpfiles
105 1.1 christos
106 1.1 christos exit $result
107