No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / msgmerge-15
blobb047b5e71c608742113276e4c077409538c3e4be
1 #! /bin/sh
3 # Test pseudo-comments containing filenames that start with a digit.
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mm-test15.pot mm-test15.po"
9 cat <<\EOF > mm-test15.pot
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: GNU gettext 0.11.5\n"
13 "POT-Creation-Date: 2002-08-20 15:24+0200\n"
14 "PO-Revision-Date: 2002-12-02 07:05+0100\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19 #: 123.c:134
20 #, c-format
21 msgid "invalid argument `%s' for `%s'"
22 msgstr "ungültiges Argument »%s« für »%s«"
23 EOF
25 cat <<\EOF > mm-test15.po
26 #: 123.c:134
27 #, c-format
28 msgid "invalid argument `%s' for `%s'"
29 msgstr ""
30 EOF
32 tmpfiles="$tmpfiles mm-test15.out"
33 : ${MSGMERGE=msgmerge}
34 ${MSGMERGE} -q mm-test15.pot mm-test15.po -o mm-test15.out
35 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
37 tmpfiles="$tmpfiles mm-test15.ok"
38 cat <<\EOF > mm-test15.ok
39 msgid ""
40 msgstr ""
41 "Project-Id-Version: GNU gettext 0.11.5\n"
42 "POT-Creation-Date: 2002-08-20 15:24+0200\n"
43 "PO-Revision-Date: 2002-12-02 07:05+0100\n"
44 "Content-Type: text/plain; charset=UTF-8\n"
45 "Content-Transfer-Encoding: 8bit\n"
46 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
48 #: 123.c:134
49 #, c-format
50 msgid "invalid argument `%s' for `%s'"
51 msgstr "ungültiges Argument »%s« für »%s«"
52 EOF
54 : ${DIFF=diff}
55 ${DIFF} mm-test15.ok mm-test15.out
56 result=$?
58 rm -fr $tmpfiles
60 exit $result