No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-7
blob9edbf3d28c728098479ecd536b4df7954d5ab02b
1 #! /bin/sh
3 # Test multi-domain handling.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mm-test7.po"
9 cat <<\EOF > mm-test7.po
10 domain "foo-de"
11 msgid ""
12 msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
14 # Das ist ein Kommentar.
15 msgid "hello"
16 msgstr "Hallo"
18 # Noch einer.
19 msgid "bye"
20 msgstr "Tschüß"
22 domain "foo-fr"
23 msgid ""
24 msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
26 # Ceci est un commentaire.
27 msgid "hello"
28 msgstr "Salut"
30 # Encore un.
31 msgid "bye"
32 msgstr "A bientôt"
33 EOF
35 tmpfiles="$tmpfiles mm-test7.pot"
36 cat <<EOF > mm-test7.pot
37 domain "foo-de"
38 msgid "Hello"
39 msgstr ""
40 domain "foo-fr"
41 msgid "Hello"
42 msgstr ""
43 EOF
45 tmpfiles="$tmpfiles mm-test7.out"
46 : ${MSGMERGE=msgmerge}
47 ${MSGMERGE} -q mm-test7.po mm-test7.pot -o mm-test7.out
48 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
50 tmpfiles="$tmpfiles mm-test7.ok"
51 cat <<\EOF > mm-test7.ok
52 domain "foo-de"
54 msgid ""
55 msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
57 # Das ist ein Kommentar.
58 #, fuzzy
59 msgid "Hello"
60 msgstr "Hallo"
62 # Noch einer.
63 #~ msgid "bye"
64 #~ msgstr "Tschüß"
66 domain "foo-fr"
68 msgid ""
69 msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
71 # Ceci est un commentaire.
72 #, fuzzy
73 msgid "Hello"
74 msgstr "Salut"
76 # Encore un.
77 #~ msgid "bye"
78 #~ msgstr "A bientôt"
79 EOF
81 : ${DIFF=diff}
82 ${DIFF} mm-test7.ok mm-test7.out
83 result=$?
85 rm -fr $tmpfiles
87 exit $result