3 # Test that --less-than=2 removes entries which occur twice and keeps entries
4 # which occur only once.
7 trap 'rm -fr $tmpfiles' 1 2 3 15
11 tmpfiles
="$tmpfiles mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3"
12 cat <<EOF > mcomm-test12.in1
15 "Project-Id-Version: GNU one 1.2.3\n"
16 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
17 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
18 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
19 "Language-Team: German <de@li.org>\n"
21 "Content-Type: text/plain; charset=iso-8859-1\n"
22 "Content-Transfer-Encoding: 8bit\n"
30 cat <<EOF > mcomm-test12.in2
33 "Project-Id-Version: GNU one 1.2.3\n"
34 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
35 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
36 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
37 "Language-Team: German <de@li.org>\n"
39 "Content-Type: text/plain; charset=iso-8859-1\n"
40 "Content-Transfer-Encoding: 8bit\n"
48 cat <<EOF > mcomm-test12.in3
51 "Project-Id-Version: GNU one 1.2.3\n"
52 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
53 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
54 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
55 "Language-Team: German <de@li.org>\n"
57 "Content-Type: text/plain; charset=iso-8859-1\n"
58 "Content-Transfer-Encoding: 8bit\n"
66 tmpfiles
="$tmpfiles mcomm-test12.out"
69 # --unique is shorthand for --less-than=2; do we've to test both
70 # switches? Are 'for' loops allowed? -ke-
71 ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test12.out \
72 mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3
73 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
75 tmpfiles
="$tmpfiles mcomm-test12.ok"
76 cat << EOF > mcomm-test12.ok
79 "Project-Id-Version: GNU one 1.2.3\n"
80 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
81 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
82 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
83 "Language-Team: German <de@li.org>\n"
85 "Content-Type: text/plain; charset=iso-8859-1\n"
86 "Content-Transfer-Encoding: 8bit\n"
94 ${DIFF} mcomm-test12.ok mcomm-test12.out