transmission: upgrade 2.31 to 2.32
[tomato.git] / release / src / router / gettext / gettext-tools / tests / msgmerge-update-3
blob4ee2bd84c890ed3f03560082e7fc61cab326830d
1 #! /bin/sh
3 # Test --update: POT-Creation-Date changed. This change must not be reflected
4 # in the resulting PO file; this is needed for projects which don't put the
5 # .pot file under CVS.
7 tmpfiles=""
8 trap 'rm -fr $tmpfiles' 1 2 3 15
10 tmpfiles="$tmpfiles mm-u-3.po"
11 cat <<\EOF > mm-u-3.po
12 # SOME DESCRIPTIVE TITLE.
13 # Copyright (C) YEAR Free Software Foundation, Inc.
14 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
16 msgid ""
17 msgstr ""
18 "Project-Id-Version: cog_training 1.0\n"
19 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
20 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
21 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
22 "Language-Team: German <de@li.org>\n"
23 "MIME-Version: 1.0\n"
24 "Content-Type: text/plain; charset=ISO-8859-1\n"
25 "Content-Transfer-Encoding: 8bit\n"
27 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
28 msgid "white"
29 msgstr "weiß"
30 EOF
32 tmpfiles="$tmpfiles mm-u-3.pot"
33 cat <<EOF > mm-u-3.pot
34 # SOME DESCRIPTIVE TITLE.
35 # Copyright (C) YEAR Free Software Foundation, Inc.
36 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
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"
49 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
50 msgid "white"
51 msgstr ""
52 EOF
54 tmpfiles="$tmpfiles mm-u-3.po~"
55 : ${MSGMERGE=msgmerge}
56 ${MSGMERGE} -q --update mm-u-3.po mm-u-3.pot
57 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
59 tmpfiles="$tmpfiles mm-u-3.ok"
60 cat <<\EOF > mm-u-3.ok
61 # SOME DESCRIPTIVE TITLE.
62 # Copyright (C) YEAR Free Software Foundation, Inc.
63 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
65 msgid ""
66 msgstr ""
67 "Project-Id-Version: cog_training 1.0\n"
68 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
69 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
70 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
71 "Language-Team: German <de@li.org>\n"
72 "MIME-Version: 1.0\n"
73 "Content-Type: text/plain; charset=ISO-8859-1\n"
74 "Content-Transfer-Encoding: 8bit\n"
76 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
77 msgid "white"
78 msgstr "weiß"
79 EOF
81 : ${DIFF=diff}
82 ${DIFF} mm-u-3.ok mm-u-3.po
83 result=$?
85 rm -fr $tmpfiles
87 exit $result