3 # Test that without --force-po option, a PO file without translations is
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 # no unique msg in input files.
10 # with --force-po create an empty PO file; cf. msgcomm-14
12 tmpfiles
="$tmpfiles mcomm-test15.in1 mcomm-test15.in2 mcomm-test15.in3"
13 cat <<EOF > mcomm-test15.in1
16 "Project-Id-Version: GNU one 1.2.3\n"
17 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
18 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
19 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
20 "Language-Team: German <de@li.org>\n"
22 "Content-Type: text/plain; charset=iso-8859-1\n"
23 "Content-Transfer-Encoding: 8bit\n"
31 cat <<EOF > mcomm-test15.in2
34 "Project-Id-Version: GNU one 1.2.3\n"
35 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
36 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
37 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
38 "Language-Team: German <de@li.org>\n"
40 "Content-Type: text/plain; charset=iso-8859-1\n"
41 "Content-Transfer-Encoding: 8bit\n"
48 cat <<EOF > mcomm-test15.in3
51 "Project-Id-Version: GNU one 1.2.3\n"
52 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
53 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
54 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
55 "Language-Team: German <de@li.org>\n"
57 "Content-Type: text/plain; charset=iso-8859-1\n"
58 "Content-Transfer-Encoding: 8bit\n"
65 tmpfiles
="$tmpfiles mcomm-test15.out"
66 rm -f mcomm-test15.out
70 # --unique is shorthand for --less-than=2; do we've to test both
71 # switches? Are 'for' loops allowed? -ke-
72 ${MSGCOMM} --less-than=2 --no-location -o mcomm-test15.out \
73 mcomm-test15.in1 mcomm-test15.in2 mcomm-test15.in3
74 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
76 # we've no unique msg; thus no PO should be created.
77 if test -f mcomm-test15.out
; then
78 echo "mcomm-test15.out wrongly written."