2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test that --less-than=2 removes entries which occur more than twice.
6 # one msg occurs 3 times (has to go away).
7 # An unique msg in in3 has to stay.
9 cat <<EOF > mcomm-test13.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"
27 cat <<EOF > mcomm-test13.in2
30 "Project-Id-Version: GNU one 1.2.3\n"
31 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
32 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
33 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
34 "Language-Team: German <de@li.org>\n"
36 "Content-Type: text/plain; charset=iso-8859-1\n"
37 "Content-Transfer-Encoding: 8bit\n"
44 cat <<EOF > mcomm-test13.in3
47 "Project-Id-Version: GNU one 1.2.3\n"
48 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
49 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
50 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
51 "Language-Team: German <de@li.org>\n"
53 "Content-Type: text/plain; charset=iso-8859-1\n"
54 "Content-Transfer-Encoding: 8bit\n"
68 # --unique is shorthand for --less-than=2; do we've to test both
69 # switches? Are 'for' loops allowed? -ke-
70 ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test13.tmp \
71 mcomm-test13.in1 mcomm-test13.in2 mcomm-test13.in3 || exit 1
72 LC_ALL=C tr -d '\r' < mcomm-test13.tmp > mcomm-test13.out || exit 1
74 cat << EOF > mcomm-test13.ok
77 "Project-Id-Version: GNU one 1.2.3\n"
78 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
79 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
80 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
81 "Language-Team: German <de@li.org>\n"
83 "Content-Type: text/plain; charset=iso-8859-1\n"
84 "Content-Transfer-Encoding: 8bit\n"
92 ${DIFF} mcomm-test13.ok mcomm-test13.out