No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-4
blob4b692e8859c6c33d208a36c3c67b5eb4c8405d44
1 #! /bin/sh
3 # Test what happens with the header entry.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test4.in1 mcomm-test4.in2"
9 cat <<EOF > mcomm-test4.in1
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: GNU one 1.2.3\n"
13 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
14 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
15 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
16 "Language-Team: German <de@li.org>\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=iso-8859-1\n"
19 "Content-Transfer-Encoding: 8bit\n"
21 #: first.c:123
22 msgid "1"
23 msgstr "1x"
24 EOF
26 cat <<EOF > mcomm-test4.in2
27 #: hunt.c:759
28 msgid "2"
29 msgstr "2x"
30 EOF
32 tmpfiles="$tmpfiles mcomm-test4.out"
33 : ${MSGCOMM=msgcomm}
34 ${MSGCOMM} --more-than=0 -o mcomm-test4.out \
35 mcomm-test4.in1 mcomm-test4.in2
36 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
38 tmpfiles="$tmpfiles mcomm-test4.ok"
39 cat << EOF > mcomm-test4.ok
40 msgid ""
41 msgstr ""
42 "Project-Id-Version: GNU one 1.2.3\n"
43 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
44 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
45 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
46 "Language-Team: German <de@li.org>\n"
47 "MIME-Version: 1.0\n"
48 "Content-Type: text/plain; charset=iso-8859-1\n"
49 "Content-Transfer-Encoding: 8bit\n"
51 #: first.c:123
52 msgid "1"
53 msgstr "1x"
55 #: hunt.c:759
56 msgid "2"
57 msgstr "2x"
58 EOF
60 : ${DIFF=diff}
61 ${DIFF} mcomm-test4.ok mcomm-test4.out
62 result=$?
64 rm -fr $tmpfiles
66 exit $result