Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgmerge-update-4
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test --update with --sort-output: POT-Creation-Date changed. This change
5 # must not be reflected in the resulting PO file; this is needed for projects
6 # which don't put the .pot file under CVS.
7
8 cat <<\EOF > mm-u-4.po
9 # SOME DESCRIPTIVE TITLE.
10 # Copyright (C) YEAR Free Software Foundation, Inc.
11 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
12 #
13 msgid ""
14 msgstr ""
15 "Project-Id-Version: cog_training 1.0\n"
16 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
17 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
18 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
19 "Language-Team: German <de@li.org>\n"
20 "Language: de\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 cogidmarkup.cc:288 cogroman.cc:14
26 msgid "white"
27 msgstr "weiß"
28
29 #~ msgid "green"
30 #~ msgstr "grün"
31 EOF
32
33 cat <<EOF > mm-u-4.pot
34 # SOME DESCRIPTIVE TITLE.
35 # Copyright (C) YEAR Free Software Foundation, Inc.
36 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
37 #
38 msgid ""
39 msgstr ""
40 "Project-Id-Version: PACKAGE VERSION\n"
41 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
42 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
43 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
44 "Language-Team: LANGUAGE <LL@li.org>\n"
45 "MIME-Version: 1.0\n"
46 "Content-Type: text/plain; charset=ISO-8859-1\n"
47 "Content-Transfer-Encoding: 8bit\n"
48
49 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
50 msgid "white"
51 msgstr ""
52 EOF
53
54 : ${MSGMERGE=msgmerge}
55 ${MSGMERGE} -q --update --sort-output mm-u-4.po mm-u-4.pot || exit 1
56
57 cat <<\EOF > mm-u-4.ok
58 # SOME DESCRIPTIVE TITLE.
59 # Copyright (C) YEAR Free Software Foundation, Inc.
60 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
61 #
62 msgid ""
63 msgstr ""
64 "Project-Id-Version: cog_training 1.0\n"
65 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
66 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
67 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
68 "Language-Team: German <de@li.org>\n"
69 "Language: de\n"
70 "MIME-Version: 1.0\n"
71 "Content-Type: text/plain; charset=ISO-8859-1\n"
72 "Content-Transfer-Encoding: 8bit\n"
73
74 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
75 msgid "white"
76 msgstr "weiß"
77
78 #~ msgid "green"
79 #~ msgstr "grün"
80 EOF
81
82 : ${DIFF=diff}
83 ${DIFF} mm-u-4.ok mm-u-4.po
84 result=$?
85
86 exit $result