No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcat-9
blob95e94a965c99d1d8ef22d5d50ee3cb2608c58607
1 #! /bin/sh
3 # Verify msgcat of two files, when the header entries have the same comments
4 # but different contents. The resulting header entry must be marked fuzzy.
6 tmpfiles=""
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles mcat-test9.in1 mcat-test9.in2"
10 cat <<\EOF > mcat-test9.in1
11 # German message file for xyz.
12 # Copyright (C) 1999, 2000, 2001 xyz.
13 # Kab Def <ke@zzz.uucp>, 2000.
15 msgid ""
16 msgstr ""
17 "Project-Id-Version: xyz\n"
18 "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
19 "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
20 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
21 "Language-Team: German <i18n@zzz.uucp>\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=ISO-8859-1\n"
24 "Content-Transfer-Encoding: 8bit\n"
26 #. Help text (HTML-like) START
27 #: clients/inst_ask_config.ycp:119
28 msgid ""
29 "Congratulations!"
30 msgstr ""
31 "Glückwunsch!"
32 EOF
34 cat <<\EOF > mcat-test9.in2
35 # German message file for xyz.
36 # Copyright (C) 1999, 2000, 2001 xyz.
37 # Kab Def <ke@zzz.uucp>, 2000.
39 msgid ""
40 msgstr ""
41 "Project-Id-Version: xyz\n"
42 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
43 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
44 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
45 "Language-Team: German <i18n@zzz.uucp>\n"
46 "MIME-Version: 1.0\n"
47 "Content-Type: text/plain; charset=ISO-8859-1\n"
48 "Content-Transfer-Encoding: 8bit\n"
50 #. Help text (HTML-like) START
51 #: clients/inst_ask_config.ycp:119
52 msgid ""
53 "Congratulations!"
54 msgstr ""
55 "Glückwunsch!"
56 EOF
58 tmpfiles="$tmpfiles mcat-test9.out"
59 rm -f mcat-test9.out
61 : ${MSGCAT=msgcat}
62 ${MSGCAT} --more-than=0 -o mcat-test9.out \
63 mcat-test9.in1 mcat-test9.in2
64 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
66 tmpfiles="$tmpfiles mcat-test9.ok"
67 cat <<\EOF > mcat-test9.ok
68 # German message file for xyz.
69 # Copyright (C) 1999, 2000, 2001 xyz.
70 # Kab Def <ke@zzz.uucp>, 2000.
72 #, fuzzy
73 msgid ""
74 msgstr ""
75 "#-#-#-#-# mcat-test9.in1 (xyz) #-#-#-#-#\n"
76 "Project-Id-Version: xyz\n"
77 "POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
78 "PO-Revision-Date: 2001-11-11 13:02+02:00\n"
79 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
80 "Language-Team: German <i18n@zzz.uucp>\n"
81 "MIME-Version: 1.0\n"
82 "Content-Type: text/plain; charset=ISO-8859-1\n"
83 "Content-Transfer-Encoding: 8bit\n"
84 "#-#-#-#-# mcat-test9.in2 (xyz) #-#-#-#-#\n"
85 "Project-Id-Version: xyz\n"
86 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
87 "PO-Revision-Date: 2001-04-24 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"
94 #. Help text (HTML-like) START
95 #: clients/inst_ask_config.ycp:119
96 msgid "Congratulations!"
97 msgstr "Glückwunsch!"
98 EOF
100 : ${DIFF=diff}
101 ${DIFF} mcat-test9.ok mcat-test9.out
102 result=$?
104 rm -fr $tmpfiles
106 exit $result