No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgcomm-8
blobbb9e1faac03383bc6a3e577e532d2268d7245f06
1 #! /bin/sh
3 # Test merge of common entries with --more-than=1.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test8.in1 mcomm-test8.in2"
9 cat <<EOF > mcomm-test8.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-test8.in2
27 msgid ""
28 msgstr ""
29 "Project-Id-Version: GNU one 1.2.3\n"
30 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
31 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
32 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
33 "Language-Team: German <de@li.org>\n"
34 "MIME-Version: 1.0\n"
35 "Content-Type: text/plain; charset=iso-8859-1\n"
36 "Content-Transfer-Encoding: 8bit\n"
38 #: hunt.c:759
39 msgid "1"
40 msgstr ""
41 EOF
43 tmpfiles="$tmpfiles mcomm-test8.out"
44 : ${MSGCOMM=msgcomm}
45 ${MSGCOMM} --more-than=1 -o mcomm-test8.out \
46 mcomm-test8.in1 mcomm-test8.in2
47 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
49 tmpfiles="$tmpfiles mcomm-test8.ok"
50 cat << EOF > mcomm-test8.ok
51 msgid ""
52 msgstr ""
53 "Project-Id-Version: GNU one 1.2.3\n"
54 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
55 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
56 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
57 "Language-Team: German <de@li.org>\n"
58 "MIME-Version: 1.0\n"
59 "Content-Type: text/plain; charset=iso-8859-1\n"
60 "Content-Transfer-Encoding: 8bit\n"
62 #: first.c:123 hunt.c:759
63 msgid "1"
64 msgstr "1x"
65 EOF
67 : ${DIFF=diff}
68 ${DIFF} mcomm-test8.ok mcomm-test8.out
69 result=$?
71 rm -fr $tmpfiles
73 exit $result