3 # Test handling of header entry.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mm-test5.in1.po mm-test5.in2.po"
9 cat <<EOF > mm-test5.in1.po
10 # SOME DESCRIPTIVE TITLE.
11 # Copyright (C) YEAR Free Software Foundation, Inc.
12 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
17 "Content-Transfer-Encoding: ENCODING\n"
20 "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
21 "Language-Team: LANGUAGE <LL@li.org>\n"
22 "Content-Type: text/plain; charset=CHARSET\n"
23 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
24 "Project-Id-Version: PACKAGE VERSION\n"
27 "whatever, doesn't matter\n"
29 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
32 cat <<EOF > mm-test5.in2.po
37 "whatever, doesn't matter\n"
39 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
42 tmpfiles
="$tmpfiles mm-test5.out mm-test5.err"
43 : ${MSGMERGE=msgmerge}
44 LC_MESSAGES
=C LC_ALL
= \
45 ${MSGMERGE} -q mm-test5.in1.po mm-test5.in2.po
-o mm-test5.out
>mm-test5.err
2>&1
47 cat mm-test5.err |
grep -v 'warning: Charset' |
grep -v '^ '
48 test $result = 0 ||
{ rm -fr $tmpfiles; exit 1; }
50 tmpfiles
="$tmpfiles mm-test5.ok"
51 cat <<EOF > mm-test5.ok
52 # SOME DESCRIPTIVE TITLE.
53 # Copyright (C) YEAR Free Software Foundation, Inc.
54 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
59 "Project-Id-Version: PACKAGE VERSION\n"
60 "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
61 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
62 "Language-Team: LANGUAGE <LL@li.org>\n"
64 "Content-Type: text/plain; charset=CHARSET\n"
65 "Content-Transfer-Encoding: ENCODING\n"
68 msgid "whatever, doesn't matter\n"
70 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla "
75 ${DIFF} mm-test5.ok mm-test5.out