• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
1#! /bin/sh
2
3# Test pseudo-comments containing filenames that start with a digit.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles mm-test15.pot mm-test15.po"
9cat <<\EOF > mm-test15.pot
10msgid ""
11msgstr ""
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"
18
19#: 123.c:134
20#, c-format
21msgid "invalid argument `%s' for `%s'"
22msgstr "ung��ltiges Argument ��%s�� f��r ��%s��"
23EOF
24
25cat <<\EOF > mm-test15.po
26#: 123.c:134
27#, c-format
28msgid "invalid argument `%s' for `%s'"
29msgstr ""
30EOF
31
32tmpfiles="$tmpfiles mm-test15.tmp mm-test15.out"
33: ${MSGMERGE=msgmerge}
34${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po
35test $? = 0 || { rm -fr $tmpfiles; exit 1; }
36tr -d '\r' < mm-test15.tmp > mm-test15.out
37test $? = 0 || { rm -fr $tmpfiles; exit 1; }
38
39tmpfiles="$tmpfiles mm-test15.ok"
40cat <<\EOF > mm-test15.ok
41msgid ""
42msgstr ""
43"Project-Id-Version: GNU gettext 0.11.5\n"
44"POT-Creation-Date: 2002-08-20 15:24+0200\n"
45"PO-Revision-Date: 2002-12-02 07:05+0100\n"
46"Content-Type: text/plain; charset=UTF-8\n"
47"Content-Transfer-Encoding: 8bit\n"
48"Plural-Forms: nplurals=2; plural=(n != 1);\n"
49
50#: 123.c:134
51#, c-format
52msgid "invalid argument `%s' for `%s'"
53msgstr "ung��ltiges Argument ��%s�� f��r ��%s��"
54EOF
55
56: ${DIFF=diff}
57${DIFF} mm-test15.ok mm-test15.out
58result=$?
59
60rm -fr $tmpfiles
61
62exit $result
63