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

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgmerge-compendium-4

  • 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 compendium option.  Use it there was no "old" PO file at all
 
4
# (merely use /dev/null).
 
5
 
 
6
tmpfiles=""
 
7
trap 'rm -fr $tmpfiles' 1 2 3 15
 
8
 
 
9
tmpfiles="$tmpfiles mm-c-4.com mm-c-4.pot"
 
10
 
 
11
cat <<\EOF > mm-c-4.com
 
12
msgid ""
 
13
msgstr ""
 
14
"Content-Type: text/plain; charset=iso-8859-1\n"
 
15
"Content-Transfer-Encoding: 8bit\n"
 
16
 
 
17
#: file.c:345
 
18
msgid "5"
 
19
msgstr "f�nf"
 
20
EOF
 
21
 
 
22
cat <<EOF > mm-c-4.pot
 
23
#: file.c:123
 
24
msgid "1"
 
25
msgstr ""
 
26
 
 
27
#: file.c:345
 
28
msgid "5"
 
29
msgstr ""
 
30
EOF
 
31
 
 
32
tmpfiles="$tmpfiles mm-c-4.out"
 
33
: ${MSGMERGE=msgmerge}
 
34
${MSGMERGE} -q --compendium mm-c-4.com /dev/null mm-c-4.pot -o mm-c-4.out
 
35
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
36
 
 
37
tmpfiles="$tmpfiles mm-c-4.ok"
 
38
cat << \EOF > mm-c-4.ok
 
39
msgid ""
 
40
msgstr ""
 
41
"Content-Type: text/plain; charset=iso-8859-1\n"
 
42
"Content-Transfer-Encoding: 8bit\n"
 
43
 
 
44
#: file.c:123
 
45
msgid "1"
 
46
msgstr ""
 
47
 
 
48
#: file.c:345
 
49
msgid "5"
 
50
msgstr "f�nf"
 
51
EOF
 
52
 
 
53
: ${DIFF=diff}
 
54
${DIFF} mm-c-4.ok mm-c-4.out
 
55
result=$?
 
56
 
 
57
rm -fr $tmpfiles
 
58
 
 
59
exit $result