2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test that --less-than=2 removes entries which occur twice and keeps entries
5 # which occur only once.
9 cat <<EOF > mcomm-test12.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-test12.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"
45 cat <<EOF > mcomm-test12.in3
48 "Project-Id-Version: GNU one 1.2.3\n"
49 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
50 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
51 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
52 "Language-Team: German <de@li.org>\n"
54 "Content-Type: text/plain; charset=iso-8859-1\n"
55 "Content-Transfer-Encoding: 8bit\n"
65 # --unique is shorthand for --less-than=2; do we've to test both
66 # switches? Are 'for' loops allowed? -ke-
67 ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test12.tmp \
68 mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3 || exit 1
69 LC_ALL=C tr -d '\r' < mcomm-test12.tmp > mcomm-test12.out || exit 1
71 cat << EOF > mcomm-test12.ok
74 "Project-Id-Version: GNU one 1.2.3\n"
75 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
76 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
77 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
78 "Language-Team: German <de@li.org>\n"
80 "Content-Type: text/plain; charset=iso-8859-1\n"
81 "Content-Transfer-Encoding: 8bit\n"
89 ${DIFF} mcomm-test12.ok mcomm-test12.out