• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test pseudo-comments containing filenames that start with a digit.
5
6cat <<\EOF > mm-test15.pot
7msgid ""
8msgstr ""
9"Project-Id-Version: GNU gettext 0.11.5\n"
10"POT-Creation-Date: 2002-08-20 15:24+0200\n"
11"PO-Revision-Date: 2002-12-02 07:05+0100\n"
12"Content-Type: text/plain; charset=UTF-8\n"
13"Content-Transfer-Encoding: 8bit\n"
14"Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
16#: 123.c:134
17#, c-format
18msgid "invalid argument `%s' for `%s'"
19msgstr "ungültiges Argument »%s« für »%s«"
20EOF
21
22cat <<\EOF > mm-test15.po
23#: 123.c:134
24#, c-format
25msgid "invalid argument `%s' for `%s'"
26msgstr ""
27EOF
28
29: ${MSGMERGE=msgmerge}
30${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po || Exit 1
31LC_ALL=C tr -d '\r' < mm-test15.tmp > mm-test15.out || Exit 1
32
33cat <<\EOF > mm-test15.ok
34msgid ""
35msgstr ""
36"Project-Id-Version: GNU gettext 0.11.5\n"
37"POT-Creation-Date: 2002-08-20 15:24+0200\n"
38"PO-Revision-Date: 2002-12-02 07:05+0100\n"
39"Content-Type: text/plain; charset=UTF-8\n"
40"Content-Transfer-Encoding: 8bit\n"
41"Plural-Forms: nplurals=2; plural=(n != 1);\n"
42
43#: 123.c:134
44#, c-format
45msgid "invalid argument `%s' for `%s'"
46msgstr "ungültiges Argument »%s« für »%s«"
47EOF
48
49: ${DIFF=diff}
50${DIFF} mm-test15.ok mm-test15.out
51result=$?
52
53exit $result
54