• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test --no-location option when there is a header.
5
6cat <<EOF > mcomm-test6.in1
7msgid ""
8msgstr ""
9"Project-Id-Version: GNU one 1.2.3\n"
10"POT-Creation-Date: 2000-12-11 20:49+0100\n"
11"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
12"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
13"Language-Team: German <de@li.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=iso-8859-1\n"
16"Content-Transfer-Encoding: 8bit\n"
17
18#: first.c:123
19msgid "1"
20msgstr "1x"
21EOF
22
23cat <<EOF > mcomm-test6.in2
24#: hunt.c:759
25msgid "2"
26msgstr "2x"
27EOF
28
29: ${MSGCOMM=msgcomm}
30${MSGCOMM} --more-than=0 --no-location -o mcomm-test6.tmp \
31    mcomm-test6.in1 mcomm-test6.in2 || Exit 1
32LC_ALL=C tr -d '\r' < mcomm-test6.tmp > mcomm-test6.out || Exit 1
33
34cat << EOF > mcomm-test6.ok
35msgid ""
36msgstr ""
37"Project-Id-Version: GNU one 1.2.3\n"
38"POT-Creation-Date: 2000-12-11 20:49+0100\n"
39"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
40"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
41"Language-Team: German <de@li.org>\n"
42"MIME-Version: 1.0\n"
43"Content-Type: text/plain; charset=iso-8859-1\n"
44"Content-Transfer-Encoding: 8bit\n"
45
46msgid "1"
47msgstr "1x"
48
49msgid "2"
50msgstr "2x"
51EOF
52
53: ${DIFF=diff}
54${DIFF} mcomm-test6.ok mcomm-test6.out
55result=$?
56
57exit $result
58