2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test --force-po option.
6 # no unique msg in input files.
7 # without --force-po don't create any PO file; cf. msgcomm-15
9 cat <<EOF > mcomm-test14.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-test14.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-test14.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"
63 # --unique is shorthand for --less-than=2; do we've to test both
64 # switches? Are 'for' loops allowed? -ke-
65 ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test14.tmp \
66 mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3 || exit 1
67 LC_ALL=C tr -d '\r' < mcomm-test14.tmp > mcomm-test14.out || exit 1
69 cat << EOF > mcomm-test14.ok
72 "Project-Id-Version: GNU one 1.2.3\n"
73 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
74 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
75 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
76 "Language-Team: German <de@li.org>\n"
78 "Content-Type: text/plain; charset=iso-8859-1\n"
79 "Content-Transfer-Encoding: 8bit\n"
83 ${DIFF} mcomm-test14.ok mcomm-test14.out