3 # Test merge of common entries with --more-than=1 and --no-location.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test9.in1 mcomm-test9.in2"
9 cat <<EOF > mcomm-test9.in1
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"
18 "Content-Type: text/plain; charset=iso-8859-1\n"
19 "Content-Transfer-Encoding: 8bit\n"
26 cat <<EOF > mcomm-test9.in2
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"
35 "Content-Type: text/plain; charset=iso-8859-1\n"
36 "Content-Transfer-Encoding: 8bit\n"
43 tmpfiles="$tmpfiles mcomm-test9.tmp mcomm-test9.out"
45 ${MSGCOMM} --more-than=1 --no-location -o mcomm-test9.tmp \
46 mcomm-test9.in1 mcomm-test9.in2
47 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
48 LC_ALL=C tr -d '\r' < mcomm-test9.tmp > mcomm-test9.out
49 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
51 tmpfiles="$tmpfiles mcomm-test9.ok"
52 cat << EOF > mcomm-test9.ok
55 "Project-Id-Version: GNU one 1.2.3\n"
56 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
57 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
58 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
59 "Language-Team: German <de@li.org>\n"
61 "Content-Type: text/plain; charset=iso-8859-1\n"
62 "Content-Transfer-Encoding: 8bit\n"
69 ${DIFF} mcomm-test9.ok mcomm-test9.out