No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-14
blobdc0141c14a3ceaa92dd8870850a6500fbb31c6eb
1 #! /bin/sh
3 # Test merging of a ref.pot in UTF-8 encoding against a def.po in legacy
4 # encoding (that was produced from an older version of ref.pot, in ASCII
5 # encoding).
7 tmpfiles=""
8 trap 'rm -fr $tmpfiles' 1 2 3 15
10 tmpfiles="$tmpfiles mm-test14-ru.po"
11 cat <<\EOF > mm-test14-ru.po
12 # Russian messages for CLISP
13 # Copyright (C) 1998 Free Software Foundation, Inc.
14 # Eduard Haritonov <hed@iis.nsk.su>, 1998.
15 # Arseny Slobodjuck <ampy@ich.dvo.ru>, 2002.
17 msgid ""
18 msgstr ""
19 "Project-Id-Version: GNU elvis 1.7\n"
20 "POT-Creation-Date: 2002-11-01 01:22+0100\n"
21 "PO-Revision-Date: 2002-11-01 01:23+0100\n"
22 "Last-Translator: Arseny Slobodjuck <ampy@ich.dvo.ru>\n"
23 "Language-Team: Russian <ru@li.org>\n"
24 "MIME-Version: 1.0\n"
25 "Content-Type: text/plain; charset=koi8-r\n"
26 "Content-Transfer-Encoding: 8bit\n"
28 #: arith.c:9
29 msgid "Division durch Null"
30 msgstr "ÄÅÌÅÎÉÅ ÎÁ ÎÕÌØ"
31 EOF
33 tmpfiles="$tmpfiles mm-test14.pot"
34 cat <<\EOF > mm-test14.pot
35 # SOME DESCRIPTIVE TITLE.
36 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
37 # This file is distributed under the same license as the PACKAGE package.
38 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
40 #, fuzzy
41 msgid ""
42 msgstr ""
43 "Project-Id-Version: PACKAGE VERSION\n"
44 "POT-Creation-Date: 2002-11-01 01:22+0100\n"
45 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
46 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
47 "Language-Team: LANGUAGE <LL@li.org>\n"
48 "MIME-Version: 1.0\n"
49 "Content-Type: text/plain; charset=UTF-8\n"
50 "Content-Transfer-Encoding: 8bit\n"
52 #: arith.c:10
53 msgid "Division durch Null"
54 msgstr ""
56 #: arith.c:15
57 msgid "Überlauf"
58 msgstr ""
59 EOF
61 tmpfiles="$tmpfiles mm-test14.out"
62 : ${MSGMERGE=msgmerge}
63 ${MSGMERGE} -q mm-test14-ru.po mm-test14.pot -o mm-test14.out
64 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
66 tmpfiles="$tmpfiles mm-test14.ok"
67 cat <<\EOF > mm-test14.ok
68 # Russian messages for CLISP
69 # Copyright (C) 1998 Free Software Foundation, Inc.
70 # Eduard Haritonov <hed@iis.nsk.su>, 1998.
71 # Arseny Slobodjuck <ampy@ich.dvo.ru>, 2002.
73 msgid ""
74 msgstr ""
75 "Project-Id-Version: GNU elvis 1.7\n"
76 "POT-Creation-Date: 2002-11-01 01:22+0100\n"
77 "PO-Revision-Date: 2002-11-01 01:23+0100\n"
78 "Last-Translator: Arseny Slobodjuck <ampy@ich.dvo.ru>\n"
79 "Language-Team: Russian <ru@li.org>\n"
80 "MIME-Version: 1.0\n"
81 "Content-Type: text/plain; charset=UTF-8\n"
82 "Content-Transfer-Encoding: 8bit\n"
84 #: arith.c:10
85 msgid "Division durch Null"
86 msgstr "деление на нуль"
88 #: arith.c:15
89 msgid "Überlauf"
90 msgstr ""
91 EOF
93 : ${DIFF=diff}
94 ${DIFF} mm-test14.ok mm-test14.out
95 result=$?
97 rm -fr $tmpfiles
99 exit $result