3 # Test --update: location changed, and xgettext comment added. Both changes
4 # must be reflected in the resulting PO file.
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles
="$tmpfiles mm-u-2.po"
10 cat <<\EOF
> mm-u-2.po
11 # SOME DESCRIPTIVE TITLE.
12 # Copyright (C) YEAR Free Software Foundation, Inc.
13 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
17 "Project-Id-Version: cog_training 1.0\n"
18 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
19 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
20 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
21 "Language-Team: German <de@li.org>\n"
23 "Content-Type: text/plain; charset=ISO-8859-1\n"
24 "Content-Transfer-Encoding: 8bit\n"
26 #: cogarithmetic.cc:12
31 tmpfiles
="$tmpfiles mm-u-2.pot"
32 cat <<EOF > mm-u-2.pot
33 # SOME DESCRIPTIVE TITLE.
34 # Copyright (C) YEAR Free Software Foundation, Inc.
35 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
39 "Project-Id-Version: PACKAGE VERSION\n"
40 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
41 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
42 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
43 "Language-Team: LANGUAGE <LL@li.org>\n"
45 "Content-Type: text/plain; charset=ISO-8859-1\n"
46 "Content-Transfer-Encoding: 8bit\n"
49 #: cogarithmetic.cc:33
54 tmpfiles
="$tmpfiles mm-u-2.po~"
55 : ${MSGMERGE=msgmerge}
56 ${MSGMERGE} -q --update mm-u-2.po mm-u-2.pot
57 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
59 tmpfiles
="$tmpfiles mm-u-2.ok"
60 cat <<\EOF
> mm-u-2.ok
61 # SOME DESCRIPTIVE TITLE.
62 # Copyright (C) YEAR Free Software Foundation, Inc.
63 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
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"
73 "Content-Type: text/plain; charset=ISO-8859-1\n"
74 "Content-Transfer-Encoding: 8bit\n"
77 #: cogarithmetic.cc:33
83 ${DIFF} mm-u-2.ok mm-u-2.po