3 # Test multi-domain handling.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles foo.po"
12 msgstr
"Content-Type: text/plain; charset=ISO-8859-1\n"
14 # Das ist ein Kommentar.
24 msgstr
"Content-Type: text/plain; charset=ISO-8859-1\n"
26 # Ceci est un commentaire.
35 tmpfiles
="$tmpfiles foo-de.mo foo-fr.mo"
38 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
40 tmpfiles
="$tmpfiles foo-de.out foo-fr.out"
41 : ${MSGUNFMT=msgunfmt}
42 ${MSGUNFMT} foo-de.mo
-o foo-de.out
43 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
44 ${MSGUNFMT} foo-fr.mo
-o foo-fr.out
45 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
47 tmpfiles
="$tmpfiles foo-de.ok"
48 cat <<\EOF
> foo-de.ok
50 msgstr
"Content-Type: text/plain; charset=ISO-8859-1\n"
59 tmpfiles
="$tmpfiles foo-fr.ok"
60 cat <<\EOF
> foo-fr.ok
62 msgstr
"Content-Type: text/plain; charset=ISO-8859-1\n"
72 ${DIFF} foo-de.ok foo-de.out
&& ${DIFF} foo-fr.ok foo-fr.out