No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-5
blobd7ed4d6daa763c765921882f366b1957a43d22f0
1 #! /bin/sh
3 # Test handling of header entry.
5 tmpfiles=""
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.
14 #, fuzzy
15 msgid ""
16 msgstr ""
17 "Content-Transfer-Encoding: ENCODING\n"
18 "MIME-Version: 1.0\n"
19 "Test: bla bla\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"
26 msgid ""
27 "whatever, doesn't matter\n"
28 msgstr ""
29 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
30 EOF
32 cat <<EOF > mm-test5.in2.po
33 msgid ""
34 msgstr ""
36 msgid ""
37 "whatever, doesn't matter\n"
38 msgstr ""
39 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
40 EOF
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
46 result=$?
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.
56 #, fuzzy
57 msgid ""
58 msgstr ""
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"
63 "MIME-Version: 1.0\n"
64 "Content-Type: text/plain; charset=CHARSET\n"
65 "Content-Transfer-Encoding: ENCODING\n"
66 "Test: bla bla\n"
68 msgid "whatever, doesn't matter\n"
69 msgstr ""
70 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla "
71 "bla\n"
72 EOF
74 : ${DIFF=diff}
75 ${DIFF} mm-test5.ok mm-test5.out
76 result=$?
78 rm -fr $tmpfiles
80 exit $result