No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-update-1
blob54e17efa19f3e545fa724b7093cc960ba069508b
1 #! /bin/sh
3 # Test --update: nothing changed; don't normalize second message
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
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.
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"
25 #: cogarithmetic.cc:12
26 msgid "white"
27 msgstr "weiß"
29 # stay away from normalizing
30 #: cogarithmetic.cc:12
31 msgid "black"
32 msgstr ""
33 "schwarz"
34 EOF
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.
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"
53 #: cogarithmetic.cc:12
54 msgid "white"
55 msgstr ""
57 #: cogarithmetic.cc:12
58 msgid "black"
59 msgstr ""
60 EOF
62 tmpfiles="$tmpfiles mm-u-1.bak"
63 cp mm-u-1.po mm-u-1.bak
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; }
70 : ${DIFF=diff}
71 ${DIFF} mm-u-1.bak mm-u-1.po
72 result=$?
74 rm -fr $tmpfiles
76 exit $result