3 # Test --force-po option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 # no unique msg in input files.
9 # without --force-po don't create any PO file; cf. msgcomm-15
11 tmpfiles
="$tmpfiles mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3"
12 cat <<EOF > mcomm-test14.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-test14.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"
47 cat <<EOF > mcomm-test14.in3
50 "Project-Id-Version: GNU one 1.2.3\n"
51 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
52 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
53 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
54 "Language-Team: German <de@li.org>\n"
56 "Content-Type: text/plain; charset=iso-8859-1\n"
57 "Content-Transfer-Encoding: 8bit\n"
64 tmpfiles
="$tmpfiles mcomm-test14.out"
67 # --unique is shorthand for --less-than=2; do we've to test both
68 # switches? Are 'for' loops allowed? -ke-
69 ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test14.out \
70 mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3
71 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
73 tmpfiles
="$tmpfiles mcomm-test14.ok"
74 cat << EOF > mcomm-test14.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"
88 ${DIFF} mcomm-test14.ok mcomm-test14.out