No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-8
blob60f1658ecc1b48a0ff0d6c3766e16ed2c659716e
1 #! /bin/sh
3 # Test multi-domain handling.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mm-test8.po"
9 cat <<\EOF > mm-test8.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-test8.pot"
36 cat <<EOF > mm-test8.pot
37 msgid "Hello"
38 msgstr ""
39 EOF
41 tmpfiles="$tmpfiles mm-test8.out"
42 : ${MSGMERGE=msgmerge}
43 ${MSGMERGE} --multi-domain -q mm-test8.po mm-test8.pot -o mm-test8.out
44 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
46 tmpfiles="$tmpfiles mm-test8.ok"
47 cat <<\EOF > mm-test8.ok
48 domain "foo-de"
50 msgid ""
51 msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
53 # Das ist ein Kommentar.
54 #, fuzzy
55 msgid "Hello"
56 msgstr "Hallo"
58 # Noch einer.
59 #~ msgid "bye"
60 #~ msgstr "Tschüß"
62 domain "foo-fr"
64 msgid ""
65 msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
67 # Ceci est un commentaire.
68 #, fuzzy
69 msgid "Hello"
70 msgstr "Salut"
72 # Encore un.
73 #~ msgid "bye"
74 #~ msgstr "A bientôt"
75 EOF
77 : ${DIFF=diff}
78 ${DIFF} mm-test8.ok mm-test8.out
79 result=$?
81 rm -fr $tmpfiles
83 exit $result