2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test that without --force-po option, a PO file without translations is
7 # no unique msg in input files.
8 # with --force-po create an empty PO file; cf. msgcomm-14
10 cat <<EOF > mcomm-test15.in1
13 "Project-Id-Version: GNU one 1.2.3\n"
14 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
15 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
16 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
17 "Language-Team: German <de@li.org>\n"
19 "Content-Type: text/plain; charset=iso-8859-1\n"
20 "Content-Transfer-Encoding: 8bit\n"
28 cat <<EOF > mcomm-test15.in2
31 "Project-Id-Version: GNU one 1.2.3\n"
32 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
33 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
34 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
35 "Language-Team: German <de@li.org>\n"
37 "Content-Type: text/plain; charset=iso-8859-1\n"
38 "Content-Transfer-Encoding: 8bit\n"
45 cat <<EOF > mcomm-test15.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"
62 rm -f mcomm-test15.out
66 # --unique is shorthand for --less-than=2; do we've to test both
67 # switches? Are 'for' loops allowed? -ke-
68 ${MSGCOMM} --less-than=2 --no-location -o mcomm-test15.out \
69 mcomm-test15.in1 mcomm-test15.in2 mcomm-test15.in3 || exit 1
71 # we've no unique msg; thus no PO should be created.
72 if test -f mcomm-test15.out; then
73 echo "mcomm-test15.out wrongly written."