3 # Test --update with --sort-output: POT-Creation-Date changed. This change
4 # must not be reflected in the resulting PO file; this is needed for projects
5 # which don't put the .pot file under CVS.
8 trap 'rm -fr $tmpfiles' 1 2 3 15
10 tmpfiles="$tmpfiles mm-u-4.po"
11 cat <<\EOF > mm-u-4.po
12 # SOME DESCRIPTIVE TITLE.
13 # Copyright (C) YEAR Free Software Foundation, Inc.
14 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
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"
25 "Content-Type: text/plain; charset=ISO-8859-1\n"
26 "Content-Transfer-Encoding: 8bit\n"
28 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
36 tmpfiles="$tmpfiles mm-u-4.pot"
37 cat <<EOF > mm-u-4.pot
38 # SOME DESCRIPTIVE TITLE.
39 # Copyright (C) YEAR Free Software Foundation, Inc.
40 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
44 "Project-Id-Version: PACKAGE VERSION\n"
45 "POT-Creation-Date: 2001-04-30 18:51+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"
50 "Content-Type: text/plain; charset=ISO-8859-1\n"
51 "Content-Transfer-Encoding: 8bit\n"
53 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
58 tmpfiles="$tmpfiles mm-u-4.po~"
59 : ${MSGMERGE=msgmerge}
60 ${MSGMERGE} -q --update --sort-output mm-u-4.po mm-u-4.pot
61 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
63 tmpfiles="$tmpfiles mm-u-4.ok"
64 cat <<\EOF > mm-u-4.ok
65 # SOME DESCRIPTIVE TITLE.
66 # Copyright (C) YEAR Free Software Foundation, Inc.
67 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
71 "Project-Id-Version: cog_training 1.0\n"
72 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
73 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
74 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
75 "Language-Team: German <de@li.org>\n"
78 "Content-Type: text/plain; charset=ISO-8859-1\n"
79 "Content-Transfer-Encoding: 8bit\n"
81 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
90 ${DIFF} mm-u-4.ok mm-u-4.po