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

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgmerge-update-1

  • 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 --update: nothing changed; don't normalize second message
 
4
 
 
5
tmpfiles=""
 
6
trap 'rm -fr $tmpfiles' 1 2 3 15
 
7
 
 
8
tmpfiles="$tmpfiles mm-u-1.po"
 
9
cat <<\EOF > mm-u-1.po
 
10
# SOME DESCRIPTIVE TITLE.
 
11
# Copyright (C) YEAR Free Software Foundation, Inc.
 
12
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
 
13
#
 
14
msgid ""
 
15
msgstr ""
 
16
"Project-Id-Version: cog_training 1.0\n"
 
17
"POT-Creation-Date: 2001-04-29 22:40+0200\n"
 
18
"PO-Revision-Date: 2001-04-29 21:19+02:00\n"
 
19
"Last-Translator: Felix N. <xyz@zyx.uucp>\n"
 
20
"Language-Team: German <de@li.org>\n"
 
21
"MIME-Version: 1.0\n"
 
22
"Content-Type: text/plain; charset=ISO-8859-1\n"
 
23
"Content-Transfer-Encoding: 8bit\n"
 
24
 
 
25
#: cogarithmetic.cc:12
 
26
msgid "white"
 
27
msgstr "wei�"
 
28
 
 
29
# stay away from normalizing
 
30
#: cogarithmetic.cc:12
 
31
msgid "black"
 
32
msgstr ""
 
33
"schwarz"
 
34
EOF
 
35
 
 
36
tmpfiles="$tmpfiles mm-u-1.pot"
 
37
cat <<EOF > mm-u-1.pot
 
38
# SOME DESCRIPTIVE TITLE.
 
39
# Copyright (C) YEAR Free Software Foundation, Inc.
 
40
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
 
41
#
 
42
msgid ""
 
43
msgstr ""
 
44
"Project-Id-Version: PACKAGE VERSION\n"
 
45
"POT-Creation-Date: 2001-04-29 22:40+0200\n"
 
46
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 
47
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 
48
"Language-Team: LANGUAGE <LL@li.org>\n"
 
49
"MIME-Version: 1.0\n"
 
50
"Content-Type: text/plain; charset=ISO-8859-1\n"
 
51
"Content-Transfer-Encoding: 8bit\n"
 
52
 
 
53
#: cogarithmetic.cc:12
 
54
msgid "white"
 
55
msgstr ""
 
56
 
 
57
#: cogarithmetic.cc:12
 
58
msgid "black"
 
59
msgstr ""
 
60
EOF
 
61
 
 
62
tmpfiles="$tmpfiles mm-u-1.bak"
 
63
cp mm-u-1.po mm-u-1.bak
 
64
 
 
65
tmpfiles="$tmpfiles mm-u-1.po~"
 
66
: ${MSGMERGE=msgmerge}
 
67
${MSGMERGE} -q --update mm-u-1.po mm-u-1.pot
 
68
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
69
 
 
70
: ${DIFF=diff}
 
71
${DIFF} mm-u-1.bak mm-u-1.po
 
72
result=$?
 
73
 
 
74
rm -fr $tmpfiles
 
75
 
 
76
exit $result