~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgcomm-10

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Test merge of common entries with --more-than=1 and --omit-header.
 
4
 
 
5
tmpfiles=""
 
6
trap 'rm -fr $tmpfiles' 1 2 3 15
 
7
 
 
8
tmpfiles="$tmpfiles mcomm-test10.in1 mcomm-test10.in2"
 
9
cat <<EOF > mcomm-test10.in1
 
10
msgid ""
 
11
msgstr ""
 
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"
 
17
"MIME-Version: 1.0\n"
 
18
"Content-Type: text/plain; charset=iso-8859-1\n"
 
19
"Content-Transfer-Encoding: 8bit\n"
 
20
 
 
21
#: first.c:123
 
22
msgid "1"
 
23
msgstr "1x"
 
24
EOF
 
25
 
 
26
cat <<EOF > mcomm-test10.in2
 
27
msgid ""
 
28
msgstr ""
 
29
"Project-Id-Version: GNU one 1.2.3\n"
 
30
"POT-Creation-Date: 2000-12-11 20:49+0100\n"
 
31
"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
 
32
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
 
33
"Language-Team: German <de@li.org>\n"
 
34
"MIME-Version: 1.0\n"
 
35
"Content-Type: text/plain; charset=iso-8859-1\n"
 
36
"Content-Transfer-Encoding: 8bit\n"
 
37
 
 
38
#: hunt.c:759
 
39
msgid "1"
 
40
msgstr ""
 
41
EOF
 
42
 
 
43
tmpfiles="$tmpfiles mcomm-test10.out"
 
44
: ${MSGCOMM=msgcomm}
 
45
${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test10.out \
 
46
    mcomm-test10.in1 mcomm-test10.in2
 
47
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
48
 
 
49
tmpfiles="$tmpfiles mcomm-test10.ok"
 
50
cat << EOF > mcomm-test10.ok
 
51
msgid "1"
 
52
msgstr "1x"
 
53
EOF
 
54
 
 
55
: ${DIFF=diff}
 
56
${DIFF} mcomm-test10.ok mcomm-test10.out
 
57
result=$?
 
58
 
 
59
rm -fr $tmpfiles
 
60
 
 
61
exit $result