No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-10
blob8def4e26db025fd0b5f5be37c20632dadbe1d44f
1 #! /bin/sh
3 # Test merging of a message which has plural forms in ref.pot but not
4 # in def.po.
6 tmpfiles=""
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles mm-test10.po"
10 cat <<EOF > mm-test10.po
11 # SOME DESCRIPTIVE TITLE.
12 # Copyright (C) YEAR Free Software Foundation, Inc.
13 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
15 msgid ""
16 msgstr ""
17 "Project-Id-Version: cog_training 1.0\n"
18 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
19 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
20 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
21 "Language-Team: German <de@li.org>\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=ISO-8859-1\n"
24 "Content-Transfer-Encoding: 8bit\n"
26 #:foobar.c:29
27 #, c-format
28 msgid "%d error"
29 msgstr "%d erreur"
30 EOF
32 tmpfiles="$tmpfiles mm-test10.pot"
33 cat <<EOF > mm-test10.pot
34 # SOME DESCRIPTIVE TITLE.
35 # Copyright (C) YEAR Free Software Foundation, Inc.
36 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
38 msgid ""
39 msgstr ""
40 "Project-Id-Version: PACKAGE VERSION\n"
41 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
42 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
43 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
44 "Language-Team: LANGUAGE <LL@li.org>\n"
45 "MIME-Version: 1.0\n"
46 "Content-Type: text/plain; charset=ISO-8859-1\n"
47 "Content-Transfer-Encoding: 8bit\n"
49 #:foobar.c:32
50 #, c-format
51 msgid "%d error"
52 msgid_plural "%d errors"
53 msgstr[0] ""
54 msgstr[1] ""
55 EOF
57 tmpfiles="$tmpfiles mm-test10.out"
58 : ${MSGMERGE=msgmerge}
59 ${MSGMERGE} -q mm-test10.po mm-test10.pot -o mm-test10.out
60 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
62 tmpfiles="$tmpfiles mm-test10.ok"
63 cat <<EOF > mm-test10.ok
64 # SOME DESCRIPTIVE TITLE.
65 # Copyright (C) YEAR Free Software Foundation, Inc.
66 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
68 msgid ""
69 msgstr ""
70 "Project-Id-Version: cog_training 1.0\n"
71 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
72 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
73 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
74 "Language-Team: German <de@li.org>\n"
75 "MIME-Version: 1.0\n"
76 "Content-Type: text/plain; charset=ISO-8859-1\n"
77 "Content-Transfer-Encoding: 8bit\n"
79 #: foobar.c:32
80 #, fuzzy, c-format
81 msgid "%d error"
82 msgid_plural "%d errors"
83 msgstr[0] "%d erreur"
84 msgstr[1] "%d erreur"
85 EOF
87 : ${DIFF=diff}
88 ${DIFF} mm-test10.ok mm-test10.out
89 result=$?
91 rm -fr $tmpfiles
93 exit $result