3
# Test --no-location option when there is a header.
6
trap 'rm -fr $tmpfiles' 1 2 3 15
8
tmpfiles="$tmpfiles mcomm-test6.in1 mcomm-test6.in2"
9
cat <<EOF > mcomm-test6.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"
26
cat <<EOF > mcomm-test6.in2
32
tmpfiles="$tmpfiles mcomm-test6.tmp mcomm-test6.out"
34
${MSGCOMM} --more-than=0 --no-location -o mcomm-test6.tmp \
35
mcomm-test6.in1 mcomm-test6.in2
36
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
37
LC_ALL=C tr -d '\r' < mcomm-test6.tmp > mcomm-test6.out
38
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
40
tmpfiles="$tmpfiles mcomm-test6.ok"
41
cat << EOF > mcomm-test6.ok
44
"Project-Id-Version: GNU one 1.2.3\n"
45
"POT-Creation-Date: 2000-12-11 20:49+0100\n"
46
"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
47
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
48
"Language-Team: German <de@li.org>\n"
50
"Content-Type: text/plain; charset=iso-8859-1\n"
51
"Content-Transfer-Encoding: 8bit\n"
61
${DIFF} mcomm-test6.ok mcomm-test6.out