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